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

Esp32 Mini-Projects

Hardware
  • 2 Devlogs
  • 2 Total hours

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

Ship #1 Pending review

The journey began in Flavourtown, where I got a Raspberry pi 500 and an esp32 starter kit, with a pledge to start learning and finding out what I like and don’t like. And while the start has been quite underwhelming, it’s still a start. And while it may not look like much (especially the 1st one), it represents the start of my journey. Those 2 hours don’t tell the full story of spending 5 hours trying to get Arduino IDE on my raspberry pi only to figure out it can’t. They don’t show the setbacks I’ve faced in what seem like elementary tasks. Those buttons don’t tell you that I spent one and a half hours trying to figure out why an LED won’t turn on after pressing the button. (It was because of a faulty wire). Yes, it is only 2 hours and 2 projects, but it’s about the experience I gained. And while it’s not much, it’s the beginning of a journey, and the first step is always the hardest to take.

  • 2 devlogs
  • 2h build
Video of Project → See source code →
Open comments for this post

1h 1m 8s logged

Ball Knowledge required: https://www.youtube.com/shorts/pqEOvjCt_ew

Basically the red switch will turn on the red light no matter where the switch or light is located on the board. Same with all the other colours. Pretty cool right? And what if a newbie like me could do the same thing? Well Guess What??? I CANNN!!!!! That’s right folks, yours truly managed to code an esp32, 4 buttons, and 4 LEDS so the same button can turn on the same LED no matter where its wired!!! WHAT???? CRAZY, RIGHT???

It’s some nifty code, try and figure it out!

0
0
28
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.

0
0
12

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…