gmarocco
ITALY • + Follow
Edit Project
Description
Multi purpose Arduino Uno shield with breadboard connection
The board has these sections
· An audio switch
· An analog trimmer connected to an Arduino analog pin
· Two push-buttons
· A 5mm RGB LED
· A 10 A SPDT relay
· A connector in order to install a Wi-Fi ESP8266 module
· A 3.3V 1 A LDO
· There are two headers in order to connect the shield to a a breadboard
I have created this project as a reference project for a Italian PCB Design Course called PCBSemplice that I have recorded
Code
Audio switch
Arduino
onst byte ledPin = 12;
const byte rele = 4;
const byte interruptPin = 2;
volatile byte state = LOW;
unsigned char count =0;
unsigned char ON =0;
unsigned char OFF =0;
unsigned long timeComparison = 0;
unsigned char alreadyON =0;
void setup() {
pinMode(ledPin, OUTPUT);
pinMode(interruptPin, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(interruptPin), checkComparator, RISING);
Serial.begin(9600);
}
void loop() {
Serial.println(count);
if (ON==1 && alreadyON==0)
{
digitalWrite(ledPin, HIGH);
digitalWrite(rele, HIGH);
alreadyON=1;
count=0;
Serial.println("ON");
}
if (OFF==1){
digitalWrite(ledPin, LOW);
digitalWrite(rele, LOW);
Serial.println("OFF");
alreadyON =0;
count=0;
OFF=0;
}
}
void checkComparator() {
count++;
switch (count){
case 1:
timeComparison=millis();
break;
case 2:
timeComparison=(millis())-timeComparison;
if (timeComparison <2000)
{
ON=1;
OFF=0;
timeComparison=millis();
}
else{
count=0;
}
break;
case 3:
timeComparison=(millis())-timeComparison;
if (timeComparison <2000)
{
ON=0;
OFF=1;
count =0;
}
else{
count=0;
}
break;
default:
count=0;
break;
}
}
Schematic and Layout
Kicad design file with pdf schematics and documentation
shield Arduino documentation- schematics- kicad project.zip
Nov 20,2022
506 views
Multi purpose Arduino Uno shield with breadboard connection
This is a Shield for Arduino Uno Rev3 development board.It has an audio switch, a DS18B20 sensor, a RGB LED, two pushbuttons, a relay.
506
0
0
Published: Nov 20,2022
Download Gerber file 3
BOM(Bill of materials)
Centroid file
Purchase
Donation Received ($)
PCBWay Donate 10% cost To Author
Only PCB
PCB+Assembly
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
Copy this HTML into your page to embed a link to order this shared project
Copy
Under the
Attribution-ShareAlike (CC BY-SA)
License.
- Comments(0)
- Likes(0)
Upload photo
You can only upload 5 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP
0 / 10000
It looks like you have not written anything. Please add a comment and try again.
You can upload up to 5 images!
Image size should not exceed 2MB!
File format not supported!
View More
View More
VOTING
0 votes
- 0 USER VOTES
0.00
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Design
1/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Usability
2/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Creativity
3/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Content
4/4
More by gmarocco
You may also like
-
-
kmMiniSchield MIDI I/O - IN/OUT/THROUGH MIDI extension for kmMidiMini
72 0 0 -
DIY Laser Power Meter with Arduino
84 0 2 -
-
-
Box & Bolt, 3D Printed Cardboard Crafting Tools
120 0 2 -
-
A DIY Soldering Station Perfect for Learning (Floppy Soldering Station 3.0)
415 0 1 -
Custom Mechanic Keyboard - STM32
241 0 3