For this week assignment, we need to control motor-LDR-circuit using Arduino.
Let's start as usual with My Objective For this project:
My Plan:
Step (1): Create the design and write the code
Step (2): Use Tinkercad for simulation
Step (3): Robotic kit+Bluetooth+Arduino
Arduino is an open-source prototyping platform based on easy-to-use hardware and software. Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a Twitter message - and turn it into an output - activating a motor, turning on an LED, publishing something online.
Find more about Arduino and why to use it Here.
Getting started in 15 min:
More Detalies tutorials
Tinkercad is an easy-to-use 3D CAD design tool. Quickly turn your idea into a CAD model.
Find more about Tinkercad and why you should use it here
Getting started with Tinkercad :
The circuit is really simple. Arduino read the signal from the LDR then convert it to digital value that control speed of the motor using the concept of pulse width modulatuion (PWM).
In simulation I used pin 8 and it work ,but in real world pin 8 doesn't support PWM so we need to use one of the supportwed pins "3,5,6,9,10,11". for more in depth info about PWM plz read this artical
In this example we will sending signals to arduino using bluetooth to control a Rc car.
A Bluetooth device works by using radio waves instead of wires or cables to connect with your cell phone, smartphone or computer. Bluetooth is a wireless short-range communications technology standard found in millions of products we use every day – including headsets, smartphones, laptops and portable speakers.
we will going to use Hc-05 Module.
you can find the code here .