Posts

Circuit Diagram of IR sensor Module and NOT Gate

Image

Code for voice controlled car T4TECHZ

#include <SoftwareSerial.h> SoftwareSerial BT(0, 1); //TX, RX respetively String readvoice; int LED1 = A0; //define LED 1 pin int LED2 = A1; //define LED 2 pin int LMP=3; int LMN=4; int RMP=5; int RMN=6; long duration, distance, duration2, distance2; void setup() {  BT.begin(9600);  Serial.begin(9600);     pinMode(LMP, OUTPUT);   pinMode(LMN, OUTPUT);   pinMode(RMP, OUTPUT);   pinMode(RMN, OUTPUT);   } //-----------------------------------------------------------------------//  void loop() {   while (BT.available()){  //Check if there is an available byte to read   delay(10); //Delay added to make thing stable   char c = BT.read(); //Conduct a serial read   readvoice += c; //build the string- "forward", "reverse", "left" and "right"   }    if(readvoice == "*forward#")  {     digitalWrite(LMP, HIGH);     digitalWrite (LMN, HIGH);     digitalWrite(RMP,LOW);   ...

T4TECHZ Facebook Page

Follow us on Facebook page https://www.facebook.com/T4techz-112021123635521/

Circuit diagram for relay modules 5V,9V,12V by T4TECHZ

Image

Circuit diagram for LED CUBE

Image

Code for LED CUBE

/*   4x4x4 LED Cube   Connection Setup:    Columns   [(x,y)-Pin]   (1,1)-13   (1,2)-12   (1,3)-11   (1,4)-10   (2,1)-9   (2,2)-8   (2,3)-7   (2,4)-6   (3,1)-5   (3-2)-4   (3-3)-3   (3,4)-2   (4,1)-1   (4,2)-0   (4,3)-A5   (4,4)-A4   Layers   [layer-Pin]   a-A0   b-A1   c-A2   d-A3 */ //initializing and declaring led rows   int column[16]={13,12,11,10,9,8,7,6,5,4,3,2,1,0,A5,A4}; //initializing and declaring led layers   int layer[4]={A3,A2,A1,A0};   int time = 250;   void setup() {   //setting rows to ouput   for(int i = 0; i<16; i++)   {     pinMode(column[i], OUTPUT);   }   //setting layers to output   for(int i = 0; i<4; i++)   {     pinMode(layer[i], OUTPUT);   }   //seeding random for random pattern   randomSeed(analogRead(10)); } //xxxxxxxxxxxxxxxxxxxxFUN...

Code For POV Display

int LED_PINS[] = {9,8,7,6,5,4,3,2};       int INPUT_PIN = 10;   int DEFAULT_LED =13;   int CUSTOM_CHAR_LENGTH = 5;   int LED_COUNT = 8;   int k;   const unsigned char CUSTOM_CHAR[95][5] = {          {0x00,0x00,0x00,0x00,0x00},   // 0x20 32          {0x00,0x00,0x6f,0x00,0x00},   // ! 0x21 33          {0x00,0x07,0x00,0x07,0x00},   // " 0x22 34          {0x14,0x7f,0x14,0x7f,0x14},   // # 0x23 35          {0x00,0x07,0x04,0x1e,0x00},   // $ 0x24 36          {0x23,0x13,0x08,0x64,0x62},   // % 0x25 37          {0x36,0x49,0x56,0x20,0x50},   // & 0x26 38   ...