-
Which ESP?
12 hours ago • 0 commentsAfter designing the last board with a ESP32 Devkit, I found there were a few different versions with different pinouts.
I bought a some of the different boards to try to work out what was what. This is what I found:
Starting on the left, is the basic ESP32 surface mount module.
Next is the 30pin DevKit, this only seams to come with one choice of ESP32 module with the onboard antenna.
Then we have 2 38pin boards in a narrow format, these are available with different ESP32 modules.
On the right there are 2 38pin boards in a wide format, these are also available with ESP32 modules.
The 38pin boards have the pins in the same order but the different widths means they are not compatible.
The 30pin board has a different pinout. The 8 missing pins are for the Internal flash chip and are not needed.
The 30pin board are available in bulk packs and so are a bit cheaper than the others at about $2.70 each.
I'll see if I can design a board which can accept any of these board for maximum flexibility.
-
A+
12 hours ago • 0 commentsI originally wanted to board to be the same size as a Pi Zero. This was possible using the basic ESP32 module, but it was lacking a USB port which meant you needed a separate programmer to upload code. I had some of the ESP32 Devkits in my parts box so I set about designing a board using one of these. These boards are quite a bit bigger than the ESP32 modules so this design would have to be bigger than a Pi Zero. I though about designing a slightly bigger board with a different mounting hole pattern but I then decided against this as I wanted these boards to be drop in replacements for the RPi's that we already use in our robots. The next size board I looked at was the Pi A+, this was a pretty good fit for the ESP32 Devkit.
Here's the first board I designed using this shape. It uses the 38pin Wide Devkit as I already had some of these to hand.
-
Cutting Costs
12 hours ago • 0 commentsThe M5 Stamp was a great board to get this project going, but it's a little too expensive, so I started looking at other ESP32 boards.
I already had a few in my parts bin, so I started playing around to see how they would fit in with my original board design. I started with the basic ESP32 surface mount module, as this was very similar in size to the M5 Stamp so It was pretty easy to modify the design.
Here's the result:
Pretty happy with this as it has met most of my original requirements, It keeps the Pi Zero format and the best thing about them is that they only cost $1.60. The down side is that they don't have a USB port so an external programmer will need to be used, this could work in the Robotics Club, as students could share, but it's not so great if that want to take them home. The cost of the programmer would negate any cost saved from using the cheaper module.
I also had some of the ESP32 DevKits, these are useful little development boards, as they have the ESP32 module plus the USB connector and associated circuitry. This makes them very easy to use, the downside is that that are quite a bit bigger and so they won't fit inside the footprint of a Pi Zero. What's also a bit confusing, is that there seem to be a few different styles of these boards with different pinouts.
-
Chassis Design
04/24/2023 at 21:10 • 0 commentsI've started designing the chassis in FreeCAD. I would like most of the parts to be laser cut, as this will be quick and cheap on the school's laser cutter, although they could also be 3D printed. Of course some parts, like the wheels would have to be 3D printed,
The design is not quite finished yet but I'll post the files here when they are.
Licence: Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
-
Test Drive
04/24/2023 at 20:50 • 0 commentsHere's a quick video showing the board in a tracked tank chassis - we use these as the base for a lot of our robots. It's controlled from a mobile phone over Wifi using Blynk. This chassis has more powerful motors than the ones I'm planning on using, so the H-Bridge is easily up to the job.
In future updates I'll post the code used for the moblie phone app, as well as other projects to get you up and running quickly.
-
The First PCB
04/24/2023 at 20:05 • 0 commentsSticking to the components that I already had, I set about designing a PCB using KiCad. I then had these made by JLCPCB.
The micro controller I use here is the ESP32 based M5 Stamp Pico from M5 Stack. I like using this micro as it smaller than most of the other boards out there, so it will fit nicely in a Pi Zero sized footprint. Secondly, it has built in wireless programming using M5 Stack's UiFlow software. This is great for programming robots as you don't have to keep plugging them into your computer to upload new code. It also has just enough IO pins to do what I want it to do.
A slight drawback is that it doesn’t have a usb socket for programming (if you don't want to use UiFlow) – you'll need a separate usb-serial cable. Although this is not a deal breaker if it keeps the overall cost down. Unfortunately the Stamp Pico is quite pricey when it comes to ESP32 boards, It costs about $6.00, so I'll look into other options.
Here's a picture of the first iteration:
I'm pleased with how this came out as it met most of my requirements. There is a MOSFET above the DC/DC converter for reverse polarity protection. It's got screw terminals for the battery and motor connectors, and header pins for 4 servos or sensors. There is a 6-pin programming header on the right hand side of the board, for plugging in a USB to serial converter. The M5 Stamp module also has a 4 pin Grove connector – for 2 additional IO pins or I2C, so it's easy to add more devices.