Arduino Music
What is an Arudino buzzer? An arduino buzzer is also called a piezo buzzer.
Read moreWhat is an Arudino buzzer? An arduino buzzer is also called a piezo buzzer.
Read moreThe car is controlled by a remote control with four buttons: front, back, left and right,
Read moreDS18B20 is 1-Wire digital temperature sensor from Maxim IC. Reports degrees in Celsius from -55 to 125 ( /-0.5). Each
Read moreTraffic Light NE555: Flashing Railroad Lights: NE555 LED FLASHER NE555 Monostable NE555 Astable
Read morePOV clock, consists of: Arduino nano, 8 LEDs and A3144 hall sensor. Arduino, based on information
Read moreHi, every electronics needs a multimeter, you can buy it or make it yourself at home. Today I will show
Read moreList Elements: Arduino Nano Display old i2c 0.96″ Hall Effect Sensor A3144 BreadBoard Wires
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
#include <SPI.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> Adafruit_SSD1306 display(4); float value=0; float rev=0; int rpm,count=0; int oldtime=0; int time; void isr() //interrupt service routine { rev++; count++; } void setup() { display.begin(SSD1306_SWITCHCAPVCC,0x3C); display.clearDisplay(); attachInterrupt(0,isr,RISING); //attaching the interrupt } void loop() { delay(1000); detachInterrupt(0); //detaches the interrupt time=millis()-oldtime; //finds the time rpm=(rev/time)*60000; //calculates rpm oldtime=millis(); //saves the current time rev=0; attachInterrupt(0,isr,RISING); display.clearDisplay(); display.setTextSize(2); display.setCursor(0,0); display.println("COUNT"); display.setCursor(70,0); display.println(count); display.setTextSize(3); display.setTextColor(WHITE); display.setCursor(34,20); display.println("RPM:"); display.setTextSize(2); display.setCursor(40,48); display.println(rpm); display.display(); } |
A Hall effect sensor is a device that is used to measure the magnitude
Read moreYou don’t have to watch TV to know what the situation is in your country. In
Read more