|
Post by Jimn10 on Nov 18, 2019 13:13:12 GMT
I am a newbie, so apologies for what might be a dumb question.
Can you connect the analogue input board and the current limiter at the same time as they both need the 3.3v and GND pins - is it an 'AND' or an 'OR'.
Thanks
Jim
|
|
|
Post by LC-DCC Designer on Nov 19, 2019 9:14:13 GMT
You connect the processor (M3/M4) 3.3v pin to both ADC and INA219 pins and do the same with the ground, so:
INA219 GND -> M3/M4 GND INA219 3V3 -> M3/M4 3V3 ADC GND -> M3/M4 GND ADC 3V3 -> M3/M4 3V3
Regards John
|
|
|
Post by Jimn10 on Nov 19, 2019 11:45:06 GMT
Thanks very much for your help.
Much appreciated
Jim
|
|
johnh
New Member
Posts: 9
|
Post by johnh on Apr 23, 2021 19:46:30 GMT
I'm having problems enabling any of the potentiometers on my analogue control. All of the pots are set to the maximum and I have 3.3v on all of the inputs on the adc board. Am I missing something.
|
|
|
Post by LC-DCC Designer on Apr 26, 2021 18:10:27 GMT
Check the following when having problems using the potentiometers (connect to the LC-DCC controller using a terminal emulator such as tera-term):
1. Enter ?VER on the terminal and check that the response contains "ADC" followed by a number. 2. Enter ?ADC on the terminal and check that either ADC1 EN=1 or ADC2 EN=1 or both, look at the SV value, it should be showing a reading from a potentiometer. 3. Enter ?POT1 ( or 2..8 ) on the terminal and change the potentiometer position, check that the VL= value changes as the potentiometer is moved by using ?POT1 again. 4. Once an engine potentiometer is enabled, move the potentiometer to the middle of it's range (speed zero) before using it to control engine speed.
Regards John
|
|
johnh
New Member
Posts: 9
|
Post by johnh on Apr 29, 2021 13:59:37 GMT
I carried out the steps detailed and the pots all changed values on Tera terminal when they were rotated as shown on the attachment, but according to the app the the potentiometers are not enabled and it advises me to try moving them to the maximum which I have done Attachments:
|
|
|
Post by Admin on May 1, 2021 18:46:17 GMT
The maximum value being read by the ADC seems to be 22688. The potentiometers need to read over 24000 before being enabled. How have you connected the potentiometers ?
|
|
johnh
New Member
Posts: 9
|
Post by johnh on May 1, 2021 20:54:27 GMT
In parallel from the 3.3v supply with the centre terminals to A0 - A3
|
|
|
Post by LC-DCC Designer on May 3, 2021 16:40:43 GMT
Do you have access to a voltmeter ? The LC-DCC controller configures the ADS1115 to 4.096V maximum and wants to see more than 3V (24000) before enabling a potentiometer. If the potentiometer is at maximum you should read near 3.3V on the center connection. Can you also check your 3.3V is 3.3V.
|
|
johnh
New Member
Posts: 9
|
Post by johnh on May 3, 2021 18:25:45 GMT
There is something strange going on which I can't fathom as yet. Yesterday after resoldering the connections on one of potentiometers I managed to enable two of the pots (the other 2 pots were not set to maximum at power up) and control a train. However when I powered down to turn all pots to the maximum none of them would re-enable on power up. Earlier today I was getting 3.3v across the centre tap and gnd but I now I only get 3.1v but when I pull the gnc wire off the ADDR pin it returns to 3.3v.
Baffled
|
|
|
Post by LC-DCC Designer on May 3, 2021 20:28:38 GMT
So, just to be clear, the potentiometers should be connected between 0V at one end and 3.3V at the other end with the center connection going to one of the ADS1115 A0/A1/A2/A3 inputs. The ADDR line can be connected to either 0V (GND) or 3.3V. The software doesn't care which ADDR connection you use as it checks both addresses at power up to determine what ADS1115 are connected.
|
|
johnh
New Member
Posts: 9
|
Post by johnh on May 4, 2021 16:58:01 GMT
All those connections were correct but after replacing the INA219 and ADS1115 boards as these were both on the 3.3v supply (without success) I think I discovered my error. I thought I had taken the GND connection for the ADS1115 from CN10 pin 20 but I must have miscounted so when I connected it to a confirmed GND pin I was able to enabled the channels. Thanks for you help and patience
|
|