Hardware Reference
In-Depth Information
We will set the weather clock to point at a weather forecast based on the
data obtained:
if(result['weather']=='Light Snow') or
(result['weather']=='Snow') or (result['weather']=='Flurri
es'):
seport.write(bytes("H",'ascii'))
sleep(5)
seport.write(bytes("T-2",'ascii'))
sleep(5)
7. Let's review the code for the control from the Raspberry Pi and the corresponding
acknowledgment signals.
Arduino acknowledgement to control signal
Let us review on the control signal and control flow of the weather clock.
Control flow for the weather clock
The following flowchart shows what happens in the Arduino when a control character is
received from the Raspberry Pi.
The weather clock program flow
 
Search WWH ::




Custom Search