Skip to main content

Posts

Showing posts with the label STEM

8x8 LED Matrix Interfacing with Arduino

This will teach you how to control individual led in 8X8 LED MATRIX using Android App. Video Link   COMPONENTS REQUIRED 1. 8X8 LED MATRIX 2. Breadboard 3. Arduino Nano 4. Connecting Wires 5. Bluetooth HC-05  CONNECTION Connect as given in circuit Diagram ARDUINO Code  #include <Led.h> int DIN = 2; int CS =  3; int CLK = 4; int row=0; int col=0; int temp=0; int data=0; LedControl lc=LedControl(DIN,CLK,CS,1); void setup() {    lc.shutdown(0,false);       lc.setIntensity(0,5);  lc.clearDisplay(0);  Serial.begin(9600); } void loop() {    if(Serial.available() > 0)        {       data = Serial.read();       Serial.print(data);// it returns ascii value if we send one in the phone                     if(data < 96)       {        if(temp==0)        {         row=data-48;         temp=1;        }        else        col=data-48;       }           else if(data=='n')        {          lc.setLed(0,row,col,true);        Serial.println('n')

LED Brightness Control using Touch Sensor and ARM

Hey Folks, In this tutorial, we will learn, how to change  the intensity of light using touch sensor the ARM (FRDM-KL25Z). INTRODUCTION The FRDM-KL25Z is an ultra-low-cost development platform for Kinetis L Series KL1x (KL14/15) and KL2x (KL24/25) MCUs built on ARM® Cortex™-M0+ processor.  The FRDM-KL25Z has been designed by NXP in collaboration with mbed for prototyping all sorts of devices, especially those requiring the size and price point offered by Cortex-M0+ and the power of USB Host and Device. The FRDM-KL25Z is supported by a range of NXP and third-party development software. It is packaged as a development board with connectors to break out to stripboard and breadboard and includes a built-in USB FLASH programmer.               FEATURES NXP KL25Z Kinetis KL2x MCU (MKL25Z128VLK4) High-performance ARM® Cortex™-M0+ Core 48MHz, 16KB RAM, 128KB FLASH USB (Host/Device) SPI (2) I2C (2) UART (3) PWM (TPM) ADC (16 bit) DAC (1x 12bit) Touch Sensor

Interfacing 7 Segment with ARM

Hey Folks, In this tutorial, we will learn how to interface a Seven Segment Display with ARM(FRDM-KL25Z). Components Required FRDM-KL25Z board Seven Segment Display (Common Cathode) Breadboard Mini Jumper Wires (As Required) FRDM-KL25Z         2. Seven Segment Display        3. Breadboard Mini         4. Jumper Wires (Male to Male)   Follow the Image below for circuit connection reference:-  (Interfacing all components) After making the circuit dump the code given below:- #include "mbed.h" BusOut display(PTA1,PTA2,PTD4,PTA12,PTA4,PTA5,PTC8,PTC9); int main() {          while (1) {                 display= 0xBF ;         wait( 1 );         display= 0x86 ;         wait( 1 );         display= 0xDB ;         wait( 1 );         display= 0xCF ;         wait( 1 );         display= 0xE6 ;         wait( 1 );         display= 0xED ;         wait( 1 );         display= 0xFD ;