I currently have no direction myself right now, so I need to post to see if I'm just glazing over something? or..., what?
Long story/short. I have a project that send serial data to the Arduino. Arduino parse it, calls whatever functions are called to action. this all works fine.
This function toggles 1-8 relays, which toggles 1-8 pumps..etc (hardware wise, everything is 100% correct/working)
Had to implement a 'scale' in my project to weigh things. I only had pins A4/A5 open, and that are used as digital pins I believe (I am using the HX711_ADC library).
//JX711 pins:
const int HX711_dout = A4; //mcu > HX711 dout pin
const int HX711_sck = A5; //mcu > HX711 sck pin
//HX711 constructor:
HX711_ADC LoadCell(HX711_dout, HX711_sck);
everything is working fine/great.. UNTIL, I use pump #7? all actions are called the same:
(example of actions sent)
<v=1:1.00>
<v=2:1.00>
<v=3:1.00>
<v=4:1.00>
<v=5:1.00>
<v=6:1.00>
<v=7:1.00> // - if this is sent, scale weights/returns....nothing? everything else works fine.
<v=8:1.00>
I dont believe it to be a code issue as every other combination and output works as expected..
I ran a separate 'scale' test... works fine.
I ran a separate 'pump' text on D12.. works fine.
(wanted to make sure I didnt have any line/circuit issues..... was just reaching, since every other pump/combo works, and the scale out is there..... but with pump #7,.. no scale output)
So I was starting to second guess.. is there any issues between I/O pin D12 and A4/A5?
Should I use/code it as D18 / D19 or something?? instead? (even though it works with everything else, as-is..without issues?)
Summary:
Q: Any hardware pin conflict issues maybe in play here ? (reaching)
Q: Why does the scale/serial output return NOTHING (like the scale is NOT connected more or less) -ONLY- when pump 7 is used in the commands/output? Pump turns on... but does -not- turn off because no scale input/return data given (so only turns off due to a timer default/catch-all in place)
What am I missing here? LOL
Thanks