This update documents progress on power up of the custom gas and UV sensor module. I did run into a few snags getting the card to work, or rather getting the software to work. The hardware on the card is designed properly, but it has just been too long since I designed the card and my software assumptions were somewhat inexplicable. After backtracking my way through everything, I finally got it sorted out. I will post an update to my pinout table at the end of this blog in case anyone else has similar problems.
I did go one step at a time to minimize the risk of frying sensors or cards, so the following video uses resistors in place of sensors to make sure the software and hardware are working properly:
I still have to perform some calibration once the sensors are burned in.
Packaging this module involves a lot of tricky features, and multiple parts which will take a couple of days to model. Hopefully I can get the 3D print to work without iterating.
Here is an updated BoosterPack pinout table for the various modules associated with this design challenge:
Energia | Booster | 432P401R | MCU | SHARP LCD | CC3100ModBoost | BoostXL | BoostSense1 | CC2650BLE | DLP7970ABP | MQ_booster | notes | |
J1-1 | 1 | +3.3V | +3.3V | +3.3V | +3.3V | +3.3V | +3.3V | +3.3V | +3.3V | +3.3V | +3.3V | |
J1-2 | 2 | Analog In | A15 | P6.0 | LCD Control | LED9 | MRDY | |||||
J1-3 | 3 | UART RX | UART RX | P3.2 | UART RX | TXD | ||||||
J1-4 | 4 | UART TX | UART TX | P3.3 | UART TX | RXD | ||||||
J1-5 | 5 | GPIO | GPIO 1 | P4.1 | LCD Enable | nHib | INT1 | LEDx | move R16 to R17 | |||
J1-6 | 6 | Analog In | A10 | P4.3 | SPI CS | LED1 | ||||||
J1-7 | 7 | SPI CLK | SPI CLK | P1.5 | SPI CLK | SPI CLK | LED2 | SPI CLK | SPI CLK | |||
J1-8 | 8 | GPIO | GPIO 2 | P4.6 | Left Slide 2 | MAG INT | Sens0 | DIO | IRQ | |||
J1-9 | 9 | I2C SCL | I2C SCL | P4.5 | Left Slide 1 | I2C SCL | Sens1 | SPI CS | ||||
J1-10 | 19 | I2C SDA | I2C SDA | P4.4 | Left Slide 0 | I2C SDA | Sens2 | EN | ||||
J2-1 | 20 | GND | GND | GND | GND | GND | GND | GND | GND | GND | GND | |
J2-2 | 19 | GPIO | GPIO | P2.5 | Ext COM Invert | IRQ | SRDY | |||||
J2-3 | 18 | SPI CS W | SPI CS W | P3.0 | SPI CS | SPI CS | Xout | |||||
J2-4 | 17 | GPIO | GPIO | P5.7 | ||||||||
J2-5 | 16 | RST | RST | RST | nReset | Reset | ||||||
J2-6 | 15 | SPI MOSI | SPI MOSI | P1.6 | SPI SIMO | SPI MOSI | LED4 | MOSI | MOSI | |||
J2-7 | 14 | SPI MISO | SPI MISO | P1.7 | SPI MISO | LED3 | MISO | MISO | ||||
J2-8 | 13 | SPI CS D | SPI CS D | P5.0 | Right Slide 2 | INT2 | Sens5 | DIO13 | LED | |||
J2-9 | 12 | SPI CS O | SPI CS O | P5.2 | Right Slide 1 | TMP INT | Sens4 | LED | ||||
J2-10 | 11 | GPIO | GPIO | P3.6 | Right Slide 0 | OPT INT | Sens3 | LED | ||||
J3-1 | 21 | '+5V | '+5V | '+5V | '+5V | '+5V | '+5V | |||||
J3-2 | 22 | GND | GND | GND | GND | GND | GND | GND | ||||
J3-3 | 23 | Analog In 3 | A14 | P6.1 | MQ-7 | CO | ||||||
J3-4 | 24 | Analog In 4 | A13 | P4.0 | MQ-135 | AQ | ||||||
J3-5 | 25 | Analog In 5 | A11 | P4.2 | MQ-3 | Alc | ||||||
J3-6 | 26 | Analog In 6 | A9 | P4.4 | UV | |||||||
J3-7 | 27 | Analog In 7 | A8 | P4.5 | CO2 | |||||||
J3-8 | 28 | Analog In 8 | A6 | P4.7 | ||||||||
J3-9 | 29 | A10 | P5.4 | |||||||||
J3-10 | 30 | A0 | P5.5 | |||||||||
J4-1 | 40 | GPIO | GPIO | P2.7 | ||||||||
J4-2 | 39 | GPIO | GPIO | P2.6 | ||||||||
J4-3 | 38 | GPIO | GPIO | P2.4 | MQ7D | |||||||
J4-4 | 37 | GPIO | VREF | P5.6 | UART CTS | |||||||
J4-5 | 36 | GPIO | GPIO | P6.6 | UART RTS | |||||||
J4-6 | 36 | GPIO | GPIO | P6.7 | nReset | |||||||
J4-7 | 34 | GPIO | GPIO | P2.3 | NWP Log TX | |||||||
J4-8 | 33 | GPIO | GPIO | P5.1 | WLAN Log TX | |||||||
J4-9 | 32 | GPIO | GPIO | P3.5 | MQ135D | |||||||
J4-10 | 31 | GPIO | GPIO | P3.7 | MQ3D |
The yellow cells are just the pins I am using in my project.
The deadline for this project is starting to put stress on progress, but with this latest milestone, the remaining work is more about finding enough time than overcoming major problems.
All links to blogs related to this project can be found in the first blog here:
Safe and Sound - Invisible Hazardous Environmental Factors Monitoring System - blog 1
Top Comments