This is a new PCB for use with the Adafruit Feather ESP32 microcontroller, which has native WiFi and Bluetooth capability (cool right?).
OMwESP32 is similar to our basic OM2 board with the following features:
- one H bridge set up to drive a single stepper motor (e.g. for a whisker stimulus)
- one Darlington array IC (ULN2003) able to control up to seven 5V/12V solenoid valves (for liquids or air), fans, high power LEDs, etc.
- lick sensing via the MPR121 capacitive touch sensor (available from Sparkfun)
- speaker output for cue tones (generated by the arduino)
- servo motor output (e.g. for driving linear actuator to move stimulus or lick port into place)
- IR beam break detector circuit (x4)
- built-in buttons for easy input
- Our standard PGIO (power-ground-IO) ports that make it super easy to plug in a variety of different components.
The basic idea of OMwESP32 (and all of the shields we've designed) is to connect the various inputs and outputs on the Arduino to external hardware, such as touch detectors or stepper motors. Then, you can program the Arduino to control this hardware in a variety of different ways, depending on the specific behavioral task you want.
The main difference is that the ESP32 board also allows wireless program upload and data streaming (I've only used WiFi thus far but Bluetooth is also possible). I will try to upload sample code for these functions soon, but contact me if you're interested and I haven't yet gotten it up.
Like our other shields, OMwESP32 is loaded with different components (resistors, transistors, integrated circuits or ICs, etc.) which are wired into the inputs and outputs.
One ULN2003 Darlington array IC
Two 16-pin IC sockets for the H-bridge and ULN2003 to sit in
One MPR121 (optional, only for touch/lick detection)
Long strip of 0.1" female headers, which you can cut to size
Double height header pack for Arduino UNO.
extra wire and wire strippers
2.1mm barrel jack connector (breadboard compatible)
Resistors (2x 1k, 2x 10k ohms) for IR beam break circuit
Making the shield
To make the OMwESP32:
Order the printed circuit board (PCB) from OSH Park. Current price is $60 for 3 boards, although you can get them made cheaper elsewhere but have to upload all of the design files. You will still need to attach the components; however, you don't need to do any wiring because the connections are already printed on the PCB.
Attaching the components
Once you have all the components, simply place them on the shield. If you're using a PCB, place the components in the holes that are marked, and they will already be connected. If you're using a proto-board, place them anywhere on the shield and connect to the appropriate pins using wires.
Using the shield with the Adafruit Feather ESP32
Example code to come. Using the ESP32 with the Arduino IDE requires download of board-specific information so follow these instructions.