SeanMabli2
Published

How to Make an Arduino Starter Project

Experimenting with Sensors and Displays to Create an Arduino Starter Project

BeginnerProtip319
How to Make an Arduino Starter Project

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
You can use any Arduino or other Microcontroller, the Arduino Uno is just the default.
×1
Any Sensor
×1
Any Display
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Sound Sensor and 4 Digit 7 Segment Display Schematic

Code

Sound Sensor and 4 Digit 7 Segment Display

Arduino
#include <Arduino.h>
#include <TM1637Display.h>

int ClkPin = 3;
int DioPin = 2;
int AnalogPin = A0;
int SoundLevel;

TM1637Display display(ClkPin, DioPin);

void setup()
{
  Serial.begin(9600);

  display.setBrightness(0x0f);
}

void loop()
{
  SoundLevel = analogRead(AnalogPin);
  Serial.println(SoundLevel);
  display.showNumberDec(SoundLevel);
  delay(300);
}

Credits

SeanMabli2
6 projects • 7 followers

Comments