assignment was to use a smart circuit using an Arduino UNO and read a signal from an input component (used the Mercury Tilt Switch Sensori ) to control an action component (i used servo motor) using TinkerCad's Code Blocks
Circuit in action
TinkerCad Circuit
for building the circuit i used TinkerCad and copied wiring to the real components after i did simulation to make sure every thing work as it should ,
components used :
Arduino Uno
Tilt Detection Sensor Module (Mercury Switch)
Servo motor
small Breadboard
some male to male+ female to male jumpers wiring
for the code i used TinkerCad 's CodeBlocks and uploaded using Arduino ide
components used
TinkerCad Circuit
i used mainly TinkerCad to design circuit and code then make sure everything is working with finally a simulate
then connecting wiring as the diagram in real life
TinkerCad CodeBlocks
i connected servos gnd and vcc and the signal to pin 11
i couldn't find the tilt switch that we had in the kit in TinkerCad and after some search in google i found a similar one but connection is a little different ours had 3 pins connected gnd and vcc and a signal i connected the signal to pin 4 in the Arduino
then coded in TinkerCad's CodeBlocks its easy and fun tool.
uploaded the file using Arduino ide
when connecting Arduino choose port of it from the ide
TinkerCad Circuit Simulation
reallife circuit wiring
Title of Media
some colleges asked how to screen record
their is a built-in hidden tool in windows 10
its called Xbox Game Bar
a simple tool that recored videos made for gamers
press Windows logo key + G and here you go :D
to know more click here >> Xbox Game Bar
had a problem with tilt sensor it works but not always and it needs accurate tilting and then you have to wait and it will not work the same way every time .
i tried the(LDR) sensor on the same pins and it worked it was same principle
Title of Media
Title of Media
Title of Media
Title of Media