Begginers Guide to Processing 18650 Cells | Cell Database


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nano help...
#1
I want to get two Nano's to talk to the same LCD. Plan to use U8GLIB with 128x64 LCD with ST7290.

Need both to output 5 analogRead() to same LCD. I want to read the voltages from a 10S pack and display it on the same page of the same LCD. Is it possible? Do I have to make the Nanos talk in serial/slave/ master or just plug up the pins of the LCDs. A quick search turned up nothing. I have not tried to wire & code it yet, figured I would ask to see if it's doable BEFOREHAND, so I didn't loose any more hair...I know there are some pros around and I thank you in advance for the assistance.
Reply


#2
(08-23-2017, 03:40 AM)Inverted 18650 Wrote: I want to get two Nano's to talk to the same LCD. Plan to use U8GLIB with 128x64 LCD with ST7290.

Need both to output 5 analogRead() to same LCD. I want to read the voltages from a 10S pack and display it on the same page of the same LCD. Is it possible? Do I have to make the Nanos talk in serial/slave/ master or just plug up the pins of the LCDs. A quick search turned up nothing. I have not tried to wire & code it yet, figured I would ask to see if it's doable BEFOREHAND, so I didn't loose any more hair...I know there are some pros around and I thank you in advance for the assistance.

Only one can write to the LCD. You will need to use this slave master code, so one can talk to the other. https://www.arduino.cc/en/Tutorial/MasterWriter

So the Slave will have to talk to the Master, then only the Master can write to the LCD. I don't believe there would be any other way.
Inverted 18650 likes this post
Reply
#3
I would create a uC that takes care of the LCD and then the "slaves" if you want to call it like that talks to that one and prints out to the LCD. Many protocols out there that will handle it just fine. Heck you could even use serial protocol straight out and have different timings and retransmit. Smile
Follow me! >> YouTube / Forum system setup / My webpage  Diy Tech & Repairs

Current: 10kW Mpp Hybrid | 4kW PIP4048 | 2x PCM60x | 83kWh LiFePo4 | 10kWh 14s 18650 |  66*260W Poly
Upcomming: 14S 18650~30kWh | Automatic trip breakers, and alot more
Reply
#4
Or use a I2c controller for your display?

http://www.benl.ebay.be/itm/I2C-or-Seria...CvJldoY2pg
Reply
#5
(08-23-2017, 06:07 AM)wim Wrote: Or use a I2c controller for your display?

http://www.benl.ebay.be/itm/I2C-or-Seria...CvJldoY2pg

Eaiser to do master slave code. Even if you need 3 nanos. Thats how I planned my weather station. Still a work in progress. 2 receivers  one master

(08-23-2017, 05:51 AM)daromer Wrote: I would create a uC that takes care of the LCD and then the "slaves" if you want to call it like that talks to that one and prints out to the LCD. Many protocols out there that will handle it just fine. Heck you could even use serial protocol straight out and have different timings and retransmit.  Smile

Excellent idea. Never thought of that. But Arduino has such limited recorces. I just cheat. Nanos are so cheap.
Reply
#6
@Geek, I'll try it and thanks for the link as well.

@Daromer: I'll also check out the uC method, thank you. Sounds like it would take me a bit longer and I don't have/ want to invest that much time into getting this up and running right now though, so it will be a future lesson for me.

@Wim, I only have a couple I2C boards and they are being used. No time to wait for new ones to arrive.

Thanks everyone, hopefully Geeks plan is fast and easy so I can move forward with my BMS project videos
Reply
#7
Personally, I would just pick a processor with enough IO to handle the requirements in a single device and make it easier for myself. Maybe an Arduino Mega or similar.
But if I had to use two nanos, I would make one the master to read its 5 inputs and display them, and also enable the serial port to receive the other 5 data values from the slave.
The slave could send the data to the master pre-formatted as text strings, with the channel number prepended and the master just updates the relevant LCD section.
One question I have though, how are you isolating the 5 voltage for each processor, so it can measure them with reference to it's own ground?
Reply
#8
I have some Mega boards on the way, but want to carry on with this project now. Sometimes it takes 4 weeks for eBay stuff to get here. And I'm displaying the voltages from a BMS, the pack under test also powers the Nanos so common ground is fine
Reply
#9
(08-23-2017, 04:01 PM)Inverted 18650 Wrote: ...the pack under test also powers the Nanos so common ground is fine

But doesn't that mean that the 10th cell is going to be feeding up to 42V into the processors analogue input pin?
Reply
#10
I put a buck converter on the pack brotha...and use a CC/CV PsU to power the Nanos. I wired one of my D3806 to the battery and it's output powers the Nanos and LCD

Here it is.
Reply


Who read this thread?
64 User(s) read this thread:
priba83 (09-15-2017, 04:32 PM), JustMeTMC (09-18-2017, 06:02 PM), Mazlem (09-02-2017, 01:57 PM), netmonk (08-29-2017, 12:05 PM), mayson14 (08-27-2017, 03:47 AM), KtB (09-02-2017, 07:09 PM), Robert Crawley (08-30-2017, 04:00 PM), colishere (08-24-2017, 05:36 AM), Eric Koshinsky (08-23-2017, 04:50 AM), Terry (09-02-2017, 11:52 AM), BlueSwordM (08-24-2017, 12:14 AM), Inverted 18650 (08-23-2017, 05:19 PM), Chiptosser (08-30-2017, 01:51 PM), Stefaan De Ridder (09-03-2017, 09:28 AM), kazbach (09-03-2017, 10:09 PM), Chris Davis (08-27-2017, 12:18 PM), iceisfun (09-02-2017, 02:10 AM), rooster4bravo (09-13-2017, 08:04 AM), Ryan Gunner (09-07-2017, 08:22 AM), lucapgt (09-01-2017, 03:16 PM), Nmonic (09-06-2017, 01:29 PM), hookemdevils22 (09-13-2017, 08:50 PM), skjold petersen (09-18-2017, 08:30 PM), maxiusfrancesy1723 (08-29-2017, 03:07 AM), SimonW (09-03-2017, 08:44 AM), floydR (09-03-2017, 11:10 PM), DrGirlfriend (08-23-2017, 04:24 PM), chris89861 (08-27-2017, 04:41 AM), Jon (09-03-2017, 07:55 AM), mike98 (09-02-2017, 09:05 PM), Geek (09-04-2017, 03:03 AM), ismaildoganw (09-02-2017, 09:14 PM), MetalFang (08-24-2017, 07:41 AM), Wattsup (08-28-2017, 09:41 AM), Prahe86 (08-30-2017, 06:46 PM), FERCSA (08-24-2017, 06:20 PM), A + A (08-29-2017, 10:54 AM), Korishan (09-03-2017, 03:28 PM), ruby2 (09-02-2017, 04:46 AM), Majorphill (09-03-2017, 02:38 AM), owitte (08-29-2017, 11:53 AM), Lux_Gamer (08-27-2017, 01:14 PM), Joaquinsfy (09-02-2017, 09:27 PM), PaulKennett (08-29-2017, 03:52 AM), Toochi84 (08-23-2017, 07:31 AM), mike (09-05-2017, 12:42 PM), daromer (09-03-2017, 07:04 AM), Scepterr (09-02-2017, 04:35 PM), BobinTN (09-07-2017, 05:29 PM), Hanssing (09-03-2017, 08:07 AM), jesusangel (09-05-2017, 08:02 PM), watts-on (09-03-2017, 07:41 AM), kaits31 (08-26-2017, 07:03 PM), neilmc (09-02-2017, 10:02 PM), 1958 greyhound (09-06-2017, 06:28 AM), Jeremy Choy (09-03-2017, 05:17 AM), typ49 (09-02-2017, 09:05 AM), frnandu (09-03-2017, 09:43 PM), wim (09-03-2017, 09:16 AM), charlie246 (08-26-2017, 12:18 AM), jdeadman (09-05-2017, 03:34 PM), HogensHero (08-27-2017, 03:20 AM), flight4900 (09-11-2017, 08:30 AM), hbpowerwall (09-03-2017, 07:26 AM)

Forum Jump:


Users browsing this thread: 1 Guest(s)