-
Notifications
You must be signed in to change notification settings - Fork 3
Microcontroller
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.