Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
The UCC open day | ||||||||
Line: 9 to 9 | ||||||||
Changed: | ||||||||
< < | -- ![]() | |||||||
> > | For the presenters:Before you can run the programs the pigpiod deamon must be running on your Raspberry Pi. Must must run this command sudo pigpiod only once after having booted the Raspberry Pi. On each on the Raspberry Pis I created a user account with the name openday and your standard course password. Please log in as "openday". On all of the Pis there is a folder called /opt/ucc/openday, into which I put the code for the project. You should find the source code, a Makefile to re-create the executable and the executable itself. Some of the projects have additional files explained below.The traffic lights:Please choose yourself if you want to run the program prepared on the Raspberry Pi or if you prefer to run your own version on the Arduino. Up to you!The Name DisplayThis program, installed under /opt/ucc/openday/nameDisplay needs a terminal to run. You start it with ./nameDisplay and it will ask its user (the visitor) to enter his name. If the name is longer than 16 characters (the max. length of 1 line on the LCD display) then the name will be truncated. A welcome message with the visitors name will appear on the LCD display.The Stepping MotorThe 4 phases of the stepping motor are connected to the Pi's GPIO pins and the logic level which powers the coil windings via the ULN2003 driver chip are switched on and off by program. You will find test programs doing a full turn each in 6 different operating mode in /opt/ucc/openday/steppingMotor. You may try any of these programs. | |||||||
Added: | ||||||||
> > | The more interesting and complete program however is installed under /opt/ucc/openday/steppingMotor/stepper. You can see all its options by typing ./stepper --help.
4 modes operating modes are implemented:
![]() The VoltmeterThe voltmeter uses an 8 bit ADC whose input is connected to a voltage coming from a potentiometer. If you turn the pot, the voltage will change and you will read another digital value from the ADC. The hexadecimal value read from the ADC is displayed on the LCD display together with the voltage. Since the values 0..0xff correspond to 0..Vcc (which is 3.3V) you can easily calculate the conversion.The meteorological StationThe meteorological station uses a DHT11 humidity and temperature sensor as well as a bmp180 temperature and barometric pressure sensor. Both sensors are read out ever 60 seconds. The DHT11 has the problem that the data read from it may be corrupted because if incoming interrupts which inhibit the readout of the device while it is sending data. A checksum allows to recognize this problem in which case the measurement and readout is simply repeated. You must wait at least 2 s however because the DHT11 needs this time to be ready for the next measurement. A typical signal display is available --![]() | |||||||
Comments | ||||||||
Added: | ||||||||
> > |
|