The goal of this PCB is to supply a Feather to provide the CPU and networking.
The meter and CPU talk to each other using SPI. I just can't map SPI between CPUs and their slaves enough times not to get confused by the differing nomenclatures. Tisham's labeling of SPI used the SI/SO nomenclature on the slave (the meters) and MOSI/MISO on the master (the CPU). This maps to:
I plan to support Feather LoRa and Huzzah. This way, I can do either RFM95 or wifi.
The "0" and "15" refer to how the IDE (Arduino, CP) identify the pin. The "physical pin" for 0 is 12 and for 15 is 10. Because all of this confuses me quickly, I can best find these by noting:
- one CS pin - I'll id as CS 0 - is 5 pins up on the right. This is pin 0(IDE)/12(physical).
- one CS pin is 6 pins up on the right. This is pin 15(IDE)/10(physical). Tested both. I could set pin values to HIGH (3.3) and LOW (0.0).
- The pin 5 pins up on the right is 9 (IDE) / 12 (physical) Hopefully this can also be CS 0
- The pin 6 pins up on the right is 10 (IDE) / 27 (physical). Tested both. I could set pin values to HIGH (3.3) and LOW (0.0).
I keep getting different Feathers that need CP installed. Steps to install:
- First thing to do is erase the flash on the ESP826. I like to start by naming the port, then erasing.
$ export PORT=/dev/tty.SLAB_USBtoUART $ esptool.py -p $PORT erase_flash
- Jumper GPIO0 and GND so the ESP826 is in boot mode.
- Write the bin you downloaded (I renamed my cphuzzah.bin)
esptool.py -p /dev/cu.SLAB_USBtoUART write_flash --flash_size=detect 0 cphuzzah.bin
- Remove the jumper wire and hit the restart button.