You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
skaestner edited this page Jan 14, 2016
·
6 revisions
#Microcontroller
##Function
The software for the microcontroller is diveded into two threads. The main thread initializes all the devices and executes the commands. The second thread controls the communication with the Rasperry Pi and put the commands to the main thread. The following picture shows the function of the software.
##Details
The Initilization routine sets the PWM for the motor, starts the ADC-Device for the sound detector and the gas sensor and integrate and initialize the two sensors on the phytec board. After this step the main-routine goes in a while-loop and everytime when a command from the communication thread is arriving, it will be executed.