Lesson 8 – Tilt Ball Switch and the Magic 8-Ball

preview_player
Показать описание
TITLE: Lesson 8 – Tilt Ball Switch and the Magic 8-Ball

A beginner's guide to the Most Complete Starter Kit by Elegoo. Lesson 8 – Tilt Ball Switch

Hello everyone, I'm Rick the Tech Enthusiast here with the next Lesson number 8 “Tilt Ball Switch”. This is the next lesson on my Arduino UNO Series covering the Most Complete Starter Kit by Elegoo. I try to follow the tutorial closely, without overburdening the viewer with every detail, but I will point out any changes or corrections as I find them.

As mentioned before, I purchased this Elegoo starter kit. I’m pronouncing it El-E-Goo, I hope that’s right (I sometimes slip and say El-a-Goo). No, Elegoo isn't sponsoring me. I just thought it would be fun to do a video of each Lesson as I was learning the Arduino environment.

For this video, we’ll need a few things from your Elegoo Arduino kit. I’ll list the items below. In this lesson we’re going to learn about the tilt sensor or the tilt ball switch is and how to use them in our projects. I step through the Elegoo provided code to explain how it makes this happen. This time we modified the sketch before we run the circuit to correct and update various parts of the code. For bonus sketch, I re-created the Magic 8-ball as shown in Arduino Video Tutorial-07 Crystal Ball Magic Ball - by Arduino. This time we get try the 1602 LCD panel available in the kit. Another fun video to make.

Parts you’ll need for the basic tutorial:
Arduino UNO R3 board
Tilt Ball Switch
Two female-to-male jumpers

The Magic 8-Ball parts are:
Arduino UNO R3 board
Tilt ball switch
1602 LCD panel
10K potentiometer
Two female-to-male jumpers wire
Various breadboard jumper wires
Breadboard

The next lesson will be Lesson 9 – Servo

Links:

This lesson’s sketch and associated drawings can be found at Github:

(Note these are Amazon Associates links)
(Full Disclosure: I get a little credit/$ if you purchase a linked item.)
LCD1602 Module with 3.3V Backlight 16x2 Character White on Blue Background by SunFounder
Passive Buzzers, Cylewet 10Pcs 5V 2 Terminals, Arduino (Pack of 10) on Amazon’s web site:
Elegoo EL-KIT-001 UNO R3 Project Complete Starter Kit with Tutorial for Arduino (63 Items) on Amazon’s web site:
Elegoo’s web site:

Fritzing Software:

Arduino Language Reference (English):
Switch Case control
Arduino LiquidCrystal web page

Inspired by Arduino Video Tutorial-07 Crystal Ball Magic Ball - by Arduino

Affiliate Links that Help my channel:

♫♪ Credits ♪♫
Music provided by Free Music Archive, by artist Jahzzar
Jahzzar_-_04_-_Magic_Mountain

This is the ninth video on a new Arduino tutorial series. If you like the series, be sure to rate and subscribe.

Thanks for watching
Рекомендации по теме
Комментарии
Автор

Wow I watched all the videos before this one and was so confused, but then it just click in my head and I’m starting to understand now. Thank you for this series. This just show to keep at it and you will get it eventually. 😁

jasondoesthings
Автор

When you modified the tiltball switch code, you set pinMode(tiltSensorPin, INPUT_PULLUP); and you said it was set to high in your comments. Is that set to a binary 0 or 1. I did a digitalRead on the tiltSensorPin and and it reported a 0.

xforney
Автор

Hello, the LCD doesn't seem to go on for the Magic 8-ball. On the breadboard, are the pins on the LCD supposed to go pretty far down? Right now it is just sitting on top of it and I am wondering if that is the issue?


Thanks!

frankdemariany
join shbcf.ru