In this guide I will show you how to make your own Arduino learning shield. This learning shield can be useful at schools, universities and to everyone that want to start dealing with the Arduino. With this shield you will learn how to read the temperature and humidity from DHT-22 sensor, read an object distance by using the HC-SR04 ultrasonic sensor, print sensor values to the NOKIA 5110 LCD. On this PCB board you will also find three LEDs, two buttons, buzzer, trimmer and photocell sensor!
Bellow you will find the PCB layout so you can easily produce it.
Ultrasonic Sensor HC-SR04
Nokia 5110 LCD (Blue PCB)
Download the gerber zip file from here and enter here to produce your PCB board.
Use JLCPCB for $2 PCB Fabrication & 2-day Build Time, the quality is really good, check the above photo of our pcb board.
Example 1:
Read and print to the LCD the room temperature, humidity and brightness percentage.
We will use:
Connections – pinout reference
DHT-22 sensor and photocell
Nokia 5110 LCD (Blue PCB)
The Code
We will use the DHT.temperature and DHT.humidity for reading temperature and humidity from DHT-22 sensor, analogRead for brightness level and display.print to print the values to the display.
Download the code from here and open it with Arduino IDE. Inside you will also find the library files.
Example 2:
Simulate the car park assist system. Detect an item, blink the LEDs and make a buzzer tone. Use the LCD to print the distance from the incoming object.
http://www.ardumotive.com/ardumotive-learning-shield-en/ardumotive-shield-simulate-park-assist
We will use:
Connections – pinout reference
LEDs and Buzzer
Ultrasonic Sensor HC-SR04
Nokia 5110 LCD (Blue PCB)
The Code
We will use the ultrasonic.Ranging(CM) to read the distance from the HC-SR04 sensor, digitalWrite to turn the LED’s ON and diplay.print to print the distance.
Download the code from here and open it with Arduino IDE. Inside you will also find the library files.
Example 3:
Turn on the LEDs separately and control the changing time with two buttons.Print the interval time to LCD.
http://www.ardumotive.com/ardumotive-learning-shield-en/ardumotive-shield-blink-leds
We will use:
Connections – pinout reference
LEDs and Buttons
Nokia 5110 LCD (Blue PCB)
The Code
We will use the currentMillis = millis to blink the LED’s without delay function.
Download the code from here and open it with Arduino IDE. Inside you will also find the library files.
Example 4:
Fade the LEDs with the trimmer. Use the LCD to print the selected PWM value.
http://www.ardumotive.com/ardumotive-learning-shield-en/ardumotive-shield-fade-leds
We will use:
Connections – pinout reference
LEDs and Trimmer
Nokia 5110 LCD (Blue PCB)
The Code
We will use the analogRead to read the value from Trimmer – potentiometer, map function to re-map analog avalues 0-1023 to PWM values 0-255, analogWrite will send the PWM value to LED’s.
Download the code from here and open it with Arduino IDE. Inside you will also find the library files.