tutorial

Arduino Timer and Interrupt

Arduino Timer and Interrupt Tutorial

Arduino Timer and Interrupt Tutorial This tutorial shows the use of timers and interrupts for Arduino boards. As Arduino programmer you have probably used timers and interrupts without even knowing it’s there, because all the low level hardware stuff is hidden by the Arduino API. Many Arduino functions uses timers, for example the time functions: delay(), millis()

Arduino Timer and Interrupt Tutorial Continue Reading

Rotary Encoder Video Tutorial with Arduino Code

Rotary Encoder Video Tutorial with Arduino Code

Rotary Encoder Tutorial with Arduino Code int pulses, A_SIG=0, B_SIG=1; void setup(){ attachInterrupt(0, A_RISE, RISING); attachInterrupt(1, B_RISE, RISING); Serial.begin(115200); }//setup void loop(){ } void A_RISE(){ detachInterrupt(0); A_SIG=1; if(B_SIG==0) pulses++;//moving forward if(B_SIG==1) pulses–;//moving reverse Serial.println(pulses); attachInterrupt(0, A_FALL, FALLING); } void A_FALL(){ detachInterrupt(0); A_SIG=0; For more detail: Rotary Encoder Video Tutorial with Arduino Code

Rotary Encoder Video Tutorial with Arduino Code Continue Reading

Create Animation on OLED Display Controlled by Arduino

Create Animation on OLED Display Controlled by Arduino

In this tutorial I will show you how to create animation on small OLED display connected to Arduino Nano. Step 1: Supplies We need following two components for this project Arduino Nano SSD1306 SPI 128×32 display You can also use SSD1306SPI 128×32 display but it will need code adjustments when declaring the display. Step 2:

Create Animation on OLED Display Controlled by Arduino Continue Reading

Scroll to Top