Lima Moreira
Published © GPL3+

Have fun with your kids and students with Arduino

You will learn how to create a module for Arduino and teach the regions of the human body to your child or student.

BeginnerFull instructions provided2 hours2,194
Have fun with your kids and students with Arduino

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
5 mm LED: Red
5 mm LED: Red
×7
Resistor 1k ohm
Resistor 1k ohm
×7
Male-Header 36 Position 1 Row- Long (0.1")
Male-Header 36 Position 1 Row- Long (0.1")
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Gerber File - NEXTPCB.COM

Get 10 free PCB from NEXTPCB.COM

Code

Source code of the Project

Arduino
Earn your 10 FREE PCB's in the NEXTPCB.COM
byte region_head = 0;

void setup()
{
  for(byte pin = 3; pin <= 7; pin++)
  {
    pinMode(pin, INPUT);
  }
  
  for(byte pin = 8; pin <= 12; pin++)
  {
    pinMode(pin, OUTPUT);
  }
}

void loop() 
{

  for(byte pin = 4; pin <= 8; pin++)
  {
    region_head = digitalRead(pin);

    if(region_head == 0)
    {
      digitalWrite((pin+5), LOW);  
    }
    
    if(region_head == 1)
    {
      digitalWrite((pin+5), HIGH); 
    }
  }
}

Credits

Lima Moreira

Lima Moreira

12 projects • 7 followers

Comments