This is my make-through for the week's assignment. Grab a cup of coffee!
in this week we will learn how to make communication between devices using some protocols (Uart or spi or I2C )
Step 1:upload Master Code to Stander Arduino UNO Using USB port after editing some lines to send blink signal every 1 sec as we didn't have an external push button at this time
Step 2: upload Slave Code to our own DIY arduino we already made before using the programmer
Step 3: connect MOSI, MISO, clock,rest,vss,gnd from each board to another one
Step 4:connect the power to master arduino and it will power the slave one and start sending a signal
Step 5: Let's Celebrate
in this part will will make small trick to address uart while we sending data to all slaves we will send key called address from master and at slave we let code check is this code = pre saved code the flag called isme will trigger and start receiving data
Step 1:Upload master Code to my arduino mega using usb
Step 2:upload slave code to my arduino uno
Step 3:connect vcc and gnd between 2 boards
Step 4:connect TX pin in Master to RX at slave and RX for Master to TX at slave
Step 5:unfortunately I just broke my push button switch so I used a jumber wire to connect Pin 2 to GND to Simulate push button press up and down
What I learned this week is...
We have Learnt to use most common communication protocols
SPI
Addressing UART
i2c