The User Interface module is designed for simple tasks and basic process control. Module has three push-buttons and three LEDs, which can be used as digital inputs and outputs of microcontroller. Additionally to simple LEDs the module is equipped with 7-segment indicator, graphical LCD display and a speaker. Interface module has four analogue sensors: potentiometer, photoresistor, thermistor and microphone. User Interface module is handy to use along with other modules enabling to control the output device behavior, like motors and display the sensor readings. The module is covered with plexiglass to protect the board from accidents.
The module is equipped with:
User Interface module is equipped with three buttons S1, S2, S3 which are connected to ports PH2, PH1, PH0 accordingly. The other end of buttons are connected through the resistors to ground (logical 0). LED1, LED2 and LED3 on the module are connected to the ports PH5, PH4, PH3 accordingly. The anodes of LEDs are connected to the supply (logical 1).
User Interface module is equipped with 7-segment indicator, which is connected to the three output terminal of the microcontroller through a shift register 74HC595.The data signal (SER) of the the shift register is connected to pin PK4, clock signal (CLK) to pin PK5 and latch (LATCH) to pin PK6.
User Interface module is equipped with LCD screen. The LCD screen is connected to the port PE SPI bus (MOSI - PE5, SCK - PE7). The rest of the LCD control signals are located on port PK.
The speaker is connected with controller board's pin PB3, which behaves as a digital-to-analog converter. It's possible to generate sound with Robotic Homelab library or with your own software.
Sensors placed in the user interface is connected directly to the microcontroller's analog-to-digital converter.
Label on PCB | Sensor name | Microcontroller pin | ADC channel number |
---|---|---|---|
MIC | Sound volume sensor | PB4 | ADC12 |
LDR | Photoresistor | PB5 | ADC13 |
NTC | Temperature sensor | PB6 | ADC14 |
POT | Potentiometer | PB7 | ADC15 |
User Interface module shall be connected to the controller module carefully so that all the connectors on both sides of the module exactly matched. If the modules are properly connected to the Controller, then it may again to apply power. Check that all power LEDs are lit of the connected modules.