You are browsing as a guest. Sign up (or log in) to start making projects!

Esp32 Mini-Projects

  • 1 Devlogs
  • 1 Total hours

Creating mini projects on an esp32 to show my understanding after going through a tutorial.

Open comments for this post

1h 0m 21s logged

My first mini project!!!!

In this project, I created a little thing where 5 LEDs of different colours light up in order and then go out in that same order.

What went well:
Since this is a very simple project, the code was quite easy to understand and do. Likewise, the wiring was also very easy.

What went wrong:
I initially planned to do this with 10 LEDs, but then I realized they would be to crammed to all fit in a nice row and looked good, so I downsized to 5. Additionally, I am not fully aware of all of the pins on the esp32 so I wasn’t aware that pin 35 is solely for input. The blue LED wouldn’t light up, and I thought I was going crazy. The fix was to just use another pin and bring it in the row through a couple extra wires.

What can improve:
Now I ain’t no genius here, but I believe that this code was very long and very repetitive, since it just defines, pin number, sets it to output, then turns it on high, delay, next pin, until they’re all high, then turns them off, delay, repeat until they’re all off. I’m sure that this can be condensed, and be made shorter. Looks like I’ll do that when I’m more advanced. Additionally, the VSCode + Github copilot in the beginning knew what I was going to write, and I want it to be purely my code so I turned it off.

Final Comments:
Not a bad start, but we’ve just started and there’s a lot to learn. I also hate having to put semi-colons at the end of every declaration. What is this bro, just hit enter into the next line and call it a day.

My first mini project!!!!

In this project, I created a little thing where 5 LEDs of different colours light up in order and then go out in that same order.

What went well:
Since this is a very simple project, the code was quite easy to understand and do. Likewise, the wiring was also very easy.

What went wrong:
I initially planned to do this with 10 LEDs, but then I realized they would be to crammed to all fit in a nice row and looked good, so I downsized to 5. Additionally, I am not fully aware of all of the pins on the esp32 so I wasn’t aware that pin 35 is solely for input. The blue LED wouldn’t light up, and I thought I was going crazy. The fix was to just use another pin and bring it in the row through a couple extra wires.

What can improve:
Now I ain’t no genius here, but I believe that this code was very long and very repetitive, since it just defines, pin number, sets it to output, then turns it on high, delay, next pin, until they’re all high, then turns them off, delay, repeat until they’re all off. I’m sure that this can be condensed, and be made shorter. Looks like I’ll do that when I’m more advanced. Additionally, the VSCode + Github copilot in the beginning knew what I was going to write, and I want it to be purely my code so I turned it off.

Final Comments:
Not a bad start, but we’ve just started and there’s a lot to learn. I also hate having to put semi-colons at the end of every declaration. What is this bro, just hit enter into the next line and call it a day.

Replying to @BlueCheckmate

0
4

Followers

Loading…