give instructions to laptop\mobile and arduino do it
i use software Tinker cad , arduino ide to design circuits and programming
i use materials electronics devices like buzzer , Leds , wires , breadboard , power source and resistor
and my laptop to give instructions for arduino
To turn my ideas and creations into something tangible, real, and interactive.
tinker cad
arduino ide
white , red and yellow leds
need 3.3 v
220 ohm
arduino
need 5v
buzzer
need 5v
connect between mobile and arduino
i use it as a power source 5v and to give instructions
search for components like resistor and Leds
bread board
drag and drop them in free space
click at and component to edit name and customize numbers and type
wire leds and buzzer in pins 5 ,6 , 9 and 10
and all in same ground
press start simulation to test your project if it works well
start to wire from positive leg Leds and buzzer to arduino
and the negative legs of led with resistor in same vertical line with buzzer and wire to the ground of arduino
RXD of bluetooth module with TXDof arduino PIN number 1
TXDof bluetooth module with RXD of arduino PIN number 2
buzzer in pin number 5
yellow led in pin nember 6
white led in pin nember 9
red led in pin nember 10
vcc with 5v of arduino
grd with dround of arduino
wire arduino with laptop has 5V
and can give instructions from serial monitor of terminal
include libraries from tools > manage libraries > search and install
" void setup " & " void loop "
first we need to define every component to arduino pins
and initialize values
set sensor as input
and buzzer , leds and motor as output
make condition for controlling the pump when no water using relay
and the red led light up and buzzer make high sound
An if statement allows you to choose between two discrete options, TRUE or FALSE. When there are more than two options, you can use multiple if statements, or you can use the switch statement. Switch allows you to choose between several discrete options.
press 1 to turn on the buzzer and press again to turn off
press 2to turn on the yellow led and press again to turn off
press 3 to turn on the white led and press again to turn off
press 4 to turn on the red led and press again to turn off
open bluetooth from mobile and search for the name of bluetooth module from module and pair with it
and open app from mobile arduino bluecontrol and take a control
the idea was very smart and connection between Arduino and laptop was good
the small breadboard is not connect horizontally so i wire component wrong when try to wire ground for all component
i try to wire one component separately to check out my code and execution and i realize that missy wire the wire component in same verticall line to same ground
is not connected
is connected together
connect Arduino with mobile and app looks like PlayStation controller
the old code for arduino and python code