Postingan

Menampilkan postingan dari Desember, 2015

Color sensor using arduino and TCS230

Gambar
Color sensor using TCS230 and RGB LED. Parts list: Arduino board https://goo.gl/XR3mXG RGB LED https://goo.gl/SPCY5o Resistor 100 ohm (Resistor kit https://goo.gl/p4JvQY ) Color sensor TCS230 https://goo.gl/xC9xhU Breadboard https://goo.gl/rGuHzY Connecting Wires https://goo.gl/BVC3pM   Please subscribe to my YouTube channel here:  https://www.youtube.com/c/EngMousaalkaabi?sub_confirmation=1 /* // TCS230 color recognition sensor // Sensor connection pins to Arduino are shown in comments Color Sensor      Arduino -----------      --------  VCC               5V  GND               GND  s0                8  s1                9  s2                12  s3                11  OUT               10  OE                GND */ const int s0 = 8;  const int s1 = 9;  const int s2 = 12;  const int s3 = 11;  const int out = 10;   // LED pins connected to Arduino int redLed = 2;  int greenLed = 3;  int blueLed = 4; // Variables  int red = 0;  int green = 0;  int blue = 0;      void setup()   {    Serial.

How to coding arduino RFID module

Gambar
RFID can use in many area such as security systems, door key, etc. Any RFID card have special ID so you must set your Arduino board to identify that ID for work only on your card. You have to follow this steps: 1-Connect your RFID module to Arduino board as follow 2-upload the programming code to Arduino board. 3-open "serial monitor" then put your card near RFID module. 4-you must add the number(ID) that shown in serial monitor to the code and upload the code again. 5-Now when you put your card near RFID module the output be turn on and after 5 seconds the output turn off automatically.(this time can change by change the number that written after "delay" in programming code).  // the sensor communicates using SPI, so include the library: #include <SPI.h> #define uchar unsigned char #define uint unsigned int //?????? #define MAX_LEN 16 ///////////////////////////////////////////////////////////////////// //set the pin //////////////////////////////////////////

Simplest ceiling fan electronic regulator(Dimmer)

Gambar
This circuit is simplest electronic regulator that can use for fan, lamps or any other dimmable electric devices. It is similar to commercial electronic fan regulators. The triac don't need to heatsink because the ceiling fan consume low power(lower than 100W). Parts list: Triac BT136 Potentiometer 500k (with switch) Diac DB3 Capacitor 0.1uF 400v(3pcs) Resistor 10k Resistor 15K Resistor 100R Coil 40uH NOTE: Don't touch the circuit when it connected to electric line