code

Arduino Row column Scanning to control an 8x8 LED Matrix

Arduino Row-column Scanning to control an 8×8 LED Matrix Code

LED displays are often packaged as matrixes of LEDs arranged in rows of common anodes and columns of common cathodes, or the reverse. Here’s a typical example, and its schematic: These can be very useful displays. To control a matrix, you connect both its rows and columns to your microcontroller. The columns are connected to

Arduino Row-column Scanning to control an 8×8 LED Matrix Code Continue Reading

Arduino Serial Communication 1

Arduino Serial Communication Code

Arduino can send output through serial communication to your computer over USB. The output can be anything such as status, text, sensor reading, value, number etc. You can view the status output by clicking Serial Monitor button at Arduino Environment software. Instruction; 1) Connect your arduino to your computer using USB cable A plug to

Arduino Serial Communication Code 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

Scroll to Top