Hi everyone! My name is Mikey. I have owned an Arduino for a while now and made some projects with it but I am out of inspiration!
here are the parts the I have
Real Time Clock Module
LCD I2C Display
some 8 Digit Display
Arduino Giga
Arduino Uno R3(x2)
UltraSonic Distance Sensor(x4)
Wires
RFID-522 Key card Sensor
ESP32
ESP8266
Bluetooth Module
HL-83 Rain Sensor
Arduino Giga Display
A Laptop(for coding)
DC Motor w/ Encoder(x2)
Servo
DC Motor(x2)
Door latch solenoid
Relays(x10)
Batteries
Nuts n' Bolts
Cardboard(for mounting)
MQ-3 Alcohol Sensor
Rocker Switch(x10)
Push Button(x20)
potentiometer(x2)
Buzzer(no idea how to use it)
IR Remote
IR receiver
FingerPrint Sensor
I hope all of you can help me find a project to make with these. I also have a budget of about $50 that I would be willing to spend on more supplies but generally I think I would like to make something with these. the buzzer that I listed earlier just clicks when I send power to it. I think I'm just sending to much but I'm not entirely sure!
Keep on your toes
Many of these <<<<. will involve USB, power supplies, battery holders, or power switching components. (transistors, FETs etc) to be used.
Choose carefully for voltage and current consideration. Your teacher should have covered Voltage and Current in the first couple of classes.
here is my overcomplicated chasing led code if you want it.
/*
Blink
Turns an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
the correct LED pin independent of which board is used.
If you want to know what pin the on-board LED is connected to on your Arduino
model, check the Technical Specs of your board at:
https://www.arduino.cc/en/Main/Products
modified 8 May 2014
by Scott Fitzgerald
modified 2 Sep 2016
by Arturo Guadalupi
modified 8 Sep 2016
by Colby Newman
This example code is in the public domain.
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
*/
int LEDPIN1 = 1;
int LEDPIN2 = 2;
int LEDPIN3 = 3;
int LEDPIN4 = 4;
int LEDPIN5 = 5;
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LEDPIN1, OUTPUT);
pinMode(LEDPIN2, OUTPUT);
pinMode(LEDPIN3, OUTPUT);
pinMode(LEDPIN4, OUTPUT);
pinMode(LEDPIN5, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LEDPIN1, HIGH);
digitalWrite(LEDPIN2, LOW);
digitalWrite(LEDPIN3, LOW);
digitalWrite(LEDPIN4, LOW);
digitalWrite(LEDPIN5, LOW);
delay(100);
digitalWrite(LEDPIN1, LOW);
digitalWrite(LEDPIN2, HIGH);
digitalWrite(LEDPIN3, LOW);
digitalWrite(LEDPIN4, LOW);
digitalWrite(LEDPIN5, LOW);
delay(100);
digitalWrite(LEDPIN1, LOW);
digitalWrite(LEDPIN2, LOW);
digitalWrite(LEDPIN3, HIGH);
digitalWrite(LEDPIN4, LOW);
digitalWrite(LEDPIN5, LOW);
delay(100);
digitalWrite(LEDPIN1, LOW);
digitalWrite(LEDPIN2, LOW);
digitalWrite(LEDPIN3, LOW);
digitalWrite(LEDPIN4, HIGH);
digitalWrite(LEDPIN5, LOW);
delay(100);
digitalWrite(LEDPIN1, LOW);
digitalWrite(LEDPIN2, LOW);
digitalWrite(LEDPIN3, LOW);
digitalWrite(LEDPIN4, LOW);
digitalWrite(LEDPIN5, HIGH);
delay(100);
}
Here is your sketch done a different way, try it out.
Ask questions.
Use pins 2, 3, 4, 5, 6
const byte LEDPIN1 = 2; //do not use pin 0 or 1 as these are for communications
const byte LEDPIN2 = 3;
const byte LEDPIN3 = 4;
const byte LEDPIN4 = 5;
const byte LEDPIN5 = 6;
//index 0 1 2 3 5
const byte ledArray[] = {2, 3, 4, 5, 6};
const byte pattern = 0b00000001;
byte myChaser;
//Timing stuff
unsigned long ledChaserTime;
// s e t u p ( )
//================================================^================================================
//
void setup()
{
//initialize LED pins as output
for (byte x = 0; x < sizeof(ledArray); x++)
{
pinMode(ledArray[x], OUTPUT);
}
myChaser = pattern;
} //END of setup()
// l o o p ( )
//================================================^================================================
//
void loop()
{
//======================================================================== T I M E R ledChaser
//is it time to advance the chase pattern ?
if (millis() - ledChaserTime >= 200ul)
{
//restart this TIMER
ledChaserTime = millis();
digitalWrite(LEDPIN1, bitRead(myChaser, 0));
digitalWrite(LEDPIN2, bitRead(myChaser, 1));
digitalWrite(LEDPIN3, bitRead(myChaser, 2));
digitalWrite(LEDPIN4, bitRead(myChaser, 3));
myChaser = myChaser << 1;
if(myChaser == 0b00010000)
{
myChaser = pattern;
}
}
//================================================
// Other non blocking code goes here
//================================================
} //END of loop()
//
//================================================^================================================
//