2019-12-17, 01:12 PM
Hi Gang,
the story so far - ALready I have a board from jlcpcb with headers for ads1115 & other sensors working well, so it turns out jlcpcb has sensors available as surface mount which they will generously solder for you in exchange for a little cash
So this weeks plan is something like the circuit below - 2 x ADS1115 voltage sensor, an INA219 current sensor for up to 3.2A and a 20A ACS712 current sensor. Plus an input for engine RPM taken from the alternator, 2 x NMEA018s in/outs , bme280 barometer and some header pins to break out I2C & ds18b20 thermometers/DAC output header(for controlling a FET to get constant current battery draw, handy for capacity testing).
Then the overall plan is to have the BOM, pick & place files etc plus micropython files all on github - so anyone else should be able to burn the files onto an ESP32, order the boards and they should work, sending data as signalk to openplotter......
So questions - any obvious errors in the circuit below? (work in progress, must be some errors in there) Or additions? Most of this has been working already & I'm slowly converting the arduino code into micropython. Or any additions? Will prob add some GPIO in/outs to header pins & some FETs as low current 12v switches.
Also - loads of tutorials for python commands and modules, but nothing much coming up about more general python programming tips and tricks and best practice to structure a program, how often & where to put try,except - and links to something for general python programming tips?
But looking OK so far, micropython seems stable enough and *much* easier to read a week later and still see what you did
Thonny editor works OK with few little bugs, uploads files fast straight to the esp32.
Might be a good way to share code, the arduino IDE can sometimes be tricky to make sure the library is one that works for sure rather than a new one.
TIA
the story so far - ALready I have a board from jlcpcb with headers for ads1115 & other sensors working well, so it turns out jlcpcb has sensors available as surface mount which they will generously solder for you in exchange for a little cash
So this weeks plan is something like the circuit below - 2 x ADS1115 voltage sensor, an INA219 current sensor for up to 3.2A and a 20A ACS712 current sensor. Plus an input for engine RPM taken from the alternator, 2 x NMEA018s in/outs , bme280 barometer and some header pins to break out I2C & ds18b20 thermometers/DAC output header(for controlling a FET to get constant current battery draw, handy for capacity testing).
Then the overall plan is to have the BOM, pick & place files etc plus micropython files all on github - so anyone else should be able to burn the files onto an ESP32, order the boards and they should work, sending data as signalk to openplotter......
So questions - any obvious errors in the circuit below? (work in progress, must be some errors in there) Or additions? Most of this has been working already & I'm slowly converting the arduino code into micropython. Or any additions? Will prob add some GPIO in/outs to header pins & some FETs as low current 12v switches.
Also - loads of tutorials for python commands and modules, but nothing much coming up about more general python programming tips and tricks and best practice to structure a program, how often & where to put try,except - and links to something for general python programming tips?
But looking OK so far, micropython seems stable enough and *much* easier to read a week later and still see what you did
Thonny editor works OK with few little bugs, uploads files fast straight to the esp32.
Might be a good way to share code, the arduino IDE can sometimes be tricky to make sure the library is one that works for sure rather than a new one.
TIA