Public projects 0

Ahmad Hajjar has no public projects.

Toolbox 2


Measure Heart Rate and SpO2 with MAX30102

Project tutorial by SurtrTech

  • 233,881 views
  • 73 comments
  • 307 respects

How to Make a Remote Controlled Robotic Hand with Arduino

Project showcase by Gabry295

  • 68,217 views
  • 6 comments
  • 161 respects

Comments 2

  • LED Color Sequencer almost 4 years ago

    You are welcome :) I hope it worked for you .. because I did not have time to test it .. I will do in the weekend ... (maybe :D )

  • LED Color Sequencer almost 4 years ago

    Thanks for sharing :) I like the idea but I would have done it as follows to make the code simpler and easier to maintain :)

    int ledCount = 5;
    int leds[] = {13, 12, 11, 10, 9};
    int currentState[] = {HIGH, LOW, LOW, LOW, LOW};
    int currentHighLed = 0;

    void setup() {
    for (int i = 0; i < ledCount; i++) {
    pinMode(leds[i], OUTPUT);
    }
    }

    void loop() {

    for (int i = 0; i < ledCount; i++) {
    digitalWrite(leds[i], currentState[i]);
    }
    currentState[currentHighLed] = LOW;
    currentHighLed++;
    if (currentHighLed >= 5) {
    currentHighLed = 0;
    }
    currentState[currentHighLed] = HIGH;
    delay(500);
    }

Add projectSign up / Login