Devon and Cornwall GNU/Linux Users Group

  • About DCGLUG
    • FAQ
    • Join
    • Meetings
    • Mailing List Archive
  • About : GNU / Linux
    • Federated social media
    • Video on Free software
    • Video on DRM
    • Video on Creative Commons
    • Hacker / Hacking definition
  • Tutorials
    • BASH Tutorials
    • e-learning
    • My Sql
    • LaTeX and Overleaf
    • Send Plain text e-mail
    • Tutorial : GnuPG – Encryption & Signing
  • CHAT (IRC) / Matrix
    • IRC – Client Setup
      • Weechat Setup guide
      • Hexchat Setup
      • IRSSI Configuration
      • xchat – setup
      • ERC Setup
      • Chat – Matrix
    • DCGLUG on Mastodon

Arduino easy module shield

Posted on 2018-01-14 by Paul Sutton

Arduino easy module shield

Arduino Sensor Shield

Equipment required:

  • Shield
    Arduino R3 uno
    Long nose pliers
    Scissors to open packet

Upon opening the packet,  you get a shield with a foam protective sheet. Fitting the board is easy(ish) partly as you need to align all pins carefully and if need be adjust the to suit the female header on the Arduino Board. Clasp 1 row of pins and move slightly, be careful doing this.

inspection of the board with the Label at the bottom the digital inputs are at the bottom (near to the power in) top row viewing this way you have analogue in then the power in/out sockets.

  • ax refers to analogue pins
    dx refers to digital pins

so on the left hand side

pins for vcc,gnd,sda & scl
below this going down 2x switches (d2,d3)
dht 11 (d4)
below this the reset switch.

Then there are 2 LEDs blue (d13) red (d12)

Potentiometer (a0)

just above this and to the right of the switches
is a tri colour LED (d9-11)

Next to this are 2x 3 blocks pins connected to (d7 & d8) along with vcc and ground pins in. Under this there is  a small buzzer connected to d5 and under that another 3 pin block with vcc,gnd and connected to a3 pin

finally on the far right hand side

serial (4x pins txd,rxd,vcc,gnd)
under that a IR led (d6)
under that light sensor (a1)
and lm35 temperature sensor connected to a2

So in all this is a pretty comprehensive board, the advantage with this is tht you don’t need to worry about wiring, you plug in the code, the components are labeled and tell you where they are connected so no messing around trying to find data-sheets or notes.

Upon connecting a usb lead for power to the Arduino the Blue LED same as the red LED on the Arduino board, which is by now covered up by the shield.

Quick test of the board using the Arduino blink example (modified)

Source code   
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
 
This example code is in the public domain.
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
int led2 = 12;
// the setup routine runs once when you press reset:
void setup() {                
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);
pinMode(led2, OUTPUT);   
}
 
// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  digitalWrite(led2, LOW); 
  delay(500);               // wait for 1/2 a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  digitalWrite(led2, HIGH); 
  delay(500);               // wait for 1/2 a second
}

 

Posted in Uncategorized |
« October 2017 events
February 2018 events »

Leave a comment Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Tinkerers Meeting – June 2025
  • Meetings June 2025
  • End of Windows 10
  • LibreOffice 24.8.7 is available for download
  • EU security bug database

RSS Debian Security

  • DSA-5944-1 chromium - security update
  • DSA-5943-1 libblockdev - security update
  • DSA-5941-1 gst-plugins-bad1.0 - security update

RSS Debian News

  • Updated Debian 12: 12.11 released
  • Updated Debian 12: 12.10 released
  • The Debian Project mourns the loss of Steve Langasek (vorlon)

CyberChimps WordPress Themes

© 2021 Devon and Cornwall GNU/Linux Users Group