
DIY Follow Me Robot
Here, you will learn how to make an autonomous robot which will follow the object in front of it.
While learning about switches, there are two important concepts that one should look into:
Switches are commonly are defined as single-pole, single-throw, such as a tactile switch, and single-pole, double-throw, such as a slide switch.
This is the simplest switch. It has one output and one input. The switch will either be closed or completely disconnected. SPST switches are perfect for on-off switching. They’re also a very common form of momentary switches. SPST switches require two terminals only.
SPDTs have three terminals: one common pin and two pins which for connection to the common.
evive has two inbuilt 3-way slide switches. Slide switch 1 is connected to Arduino pins 40 and 41, both active high. This means that when the switch is slid up, pin 40 is high. When it slides down, pin 41 is high while both are low when the switch is in the middle. Slide switch 2 is connected to pins 42 and 43, and works in a similar manner as slide switch 1.
In this example we will read the state of evive’s slide switch 1 and display it on the TFT Screen.
Below is the flow chart on which the sketch will be based:
Below is the sketch:
0 items in the cart ($0.00)