Things used in this project

Hardware components:
51gzz5eu9pl. sx425
Ultrasonic Sensor - HC-SR04 (Generic)
09264 1
RGB Diffused Common Anode
11113 01
SparkFun Arduino Pro Mini 328 - 5V/16MHz
9V battery (generic)
Software apps and online services:
8ztngd 9
Ide web
Arduino IDE

Custom parts and enclosures

Air Gate Body
Air Gate Base
Air Gate for drones


Air gate void loopArduino
Replace the void loop () function in the sample code from with the code below
void loop() {
  // Read distance measurment from UltraSonic sensor
  int hcsr04Dist = hcsr04.ping_cm();

  rgbLed.setRGB(255, 0 , 0 );  //Change the values in the brackets to (255,0,0) for pure RED, (0,255,0) for pure GREEN and (0,0,255) for pure BLUE.

  if (hcsr04Dist < 30 && hcsr04Dist > 2)
    rgbLed.setRGB(0, 255, 0);    //Change the values in the brackets to (255,0,0) for pure RED, (0,255,0) for pure GREEN and (0,0,255) for pure BLUE.


Jzbvk4go5lw68vtvbfe4 team is an online platform that generates wiring and code for Arduino projects. Want to know more? Visit



Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback


Similar projects you might like

Arduinomated Car Parking with Voice Assistance in Smartphone
  • 80
  • 5

Full instructions

Make an assistant which tells you about how much to drive backwards without any collision through your smartphone by Arduino and 1Sheeld.

Reducing Arduino Power Consumption
  • 70
  • 4

Full instructions

One the most important feature of portable electronics should be long battery life. We can reduce the current drawn by several ways.

Sigfox Forest Fire Detector
  • 2,015
  • 13

Full instructions

How to prevent forest from burning? A small Sigfox signal can prevent natural disasters. We will use an Arduino MKRFOX + a flame detector.

Arduino Word Clock
  • 499
  • 8

Full instructions

A clock that let you read the time, for real!

Wall Mounted Textile MP3 Player
  • 67
  • 2

MP3 Player with fabric user interface using Arduino LilyPad.

Using Common Cathode and Common Anode RGB LED with Arduino
  • 850
  • 15


Common Cathode and Common Anode RGB LEDs are two different kinds of RGB LEDs whose function is same but working is different.

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaFree StoreBlog