@Olaf-Jacobs It's a straight analogue read on a single ADC pin relative to Vcc and ground of the Arduino Node.
In my case it's a pro-mini, the ADC pin in this example earlier defined as "Pressure", the result radioed in only if the ADC reading has changed. Three other binary inputs for contactors are polled every second on separate digital pins (one of which is pin 3), which uses all 4 pins available on this pro-mini due to the radio etc.
if ((!hidro&&!Hidro&&(counter2>=132))||initialise){
int incoming=analogRead(Pressure);
if (prevolume!=incoming){
prevolume=incoming;
sleep(50);
float tankvolume=(((incoming-102.3)*6.704199635)+0.5);//5psi sensor
send(msg8.set(tankvolume,0));//This is actual volume
sleep(100);
}}
I'm not clear on the rest of what you're trying to incorporate or what pin 3 (digital interrupt) has to do with it, the pressure sensor signal goes to an analogue pin to enable the voltage to be read.
@jesse said:
I found the solution on this page: http://mathertel.blogspot.com/2013/04/using-spi-bus-with-ethernet-sd-card-and.html
The key is setting the Chip Select (CS) line to be different for each module.
For the CC3000...
"#define ADAFRUIT_CC3000_CS 7"
Pin 7 is being used exclusively to select the Wifi module.
https://learn.adafruit.com/adafruit-cc3000-wifi/cc3000-breakout
For the NRF24L01+...
"RF24 radio(9,10);"
Pin 9 is being used for Chip Enable (CE) and Pin 10 is Chip Select (CS).
http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo
http://maniacbug.github.io/RF24/classRF24.html
The other SPI pins: CLK, MISO, MOSI, are shared by the two modules and get wired in parallel.
Hi do you still have a Gateway code when using CC3000 and arduino Mega or UNO(if it fits)?
I would think that the "heavy lifting" of regulating the actual output power of the charger would be a function of the charge controller itself? Maybe you could tie into / control that somehow with your own microcontroller as brain / interface? Maybe they expose some API, serial, or other method of interfacing with their hardware?
What are/were you using for charge controller?
Also, what is "CT" in this context?
I have read a bit here and there about solar (and related moving around and controlling of power, eg. batteries, charge controllers, etc...), as it is something I plan on doing "eventually" although I have no direct experience as of yet. So I will be following this thread with interest.