This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sensor board & python help
#1
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  Cool
 
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 Smile

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  Heart

[Image: ZPu3NwL.png]
Reply


Messages In This Thread
Sensor board & python help - by PaddyB - 2019-12-17, 01:12 PM
RE: Sensor board & python help - by abarrow - 2019-12-17, 01:41 PM
RE: Sensor board & python help - by PaddyB - 2019-12-17, 01:48 PM
Sensor board & python help - by tkurki - 2019-12-17, 04:59 PM
RE: Sensor board & python help - by PaddyB - 2019-12-17, 05:43 PM
RE: Sensor board & python help - by CapnKernel - 2019-12-17, 11:14 PM
RE: Sensor board & python help - by PaddyB - 2019-12-18, 11:24 AM
RE: Sensor board & python help - by PaddyB - 2020-01-07, 08:18 AM
RE: Sensor board & python help - by abarrow - 2020-01-07, 01:32 PM
RE: Sensor board & python help - by PaddyB - 2020-01-07, 02:09 PM
RE: Sensor board & python help - by mgrouch - 2020-02-03, 02:11 AM
RE: Sensor board & python help - by abarrow - 2020-01-08, 02:04 PM
RE: Sensor board & python help - by PaddyB - 2020-01-09, 01:36 PM
RE: Sensor board & python help - by abarrow - 2020-01-09, 03:05 PM
RE: Sensor board & python help - by PaddyB - 2020-01-09, 06:37 PM
RE: Sensor board & python help - by holgerw - 2020-01-13, 03:16 PM
RE: Sensor board & python help - by PaddyB - 2020-01-13, 06:23 PM
RE: Sensor board & python help - by holgerw - 2020-01-14, 08:15 AM
RE: Sensor board & python help - by PaddyB - 2020-01-14, 01:39 PM
RE: Sensor board & python help - by holgerw - 2020-01-31, 04:42 PM
RE: Sensor board & python help - by PaddyB - 2020-02-01, 11:35 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)