Sunday, June 17, 2018
Updates and future plans.
Prototyping board update:
The 2.54mm pitch screw terminal block connectors arrived, as have the 12" 2x20 ribbon cable and new 5vdc relay card. re-wiring the relay card is done. F-F and F-M jumpers are on order as is a GPIO HAT for the Raspberry Pi. The screw terminals fit the header profile of the breakout modules and two standard headers for the ADS1115s remain.
A power connection has to be run from the array power lines (36vdc) to the relay card, to power the linear actuator (36vdc). I have been using the battery bank's 24vdc supply, however, that slows down the actuator's speed.
Connections between the Raspberry Pi's GPIO header and the breakout modules will be from the GPIO HAT using jumpers, screw terminals, wire and ribbon cable.
Current list of modules:
real time clock
8-channel multiplexor
analog to digital converters (ADS1115, PCF8591 multi-function)
Photo of the current state of the prototyping board:
The 5vdc relay card is on the left.
The buck converter is next to the relay card and will replace the Apple iPad power block as power supply.
The Raspberry Pi SoC (System on a Card) is in the middle. The RPi is a full fledged computer.
The PCF8591 is on the right.
Multiple ADS1115s will be placed on the far right.
The 8-channel multiplexor will be placed aboce the relay card, on top.
There is a temperature controlled relay, 20A, module that may be on the right.
The Temperature controlled relay module could be placed above the relay card and in the same orientation. The multiplexor could be placed on the right and replace some of the ADS1115s.
There is no designated use for the temperature controlled relay card or the multiplexor.
They may be added later on, or left out.
The LCD panel voltmeter needs to be moved up to the prototyping board.
A 12vdc relay card arrived and will be kept for possible future use or resale.
Some consideration has to be made to implementing the plans for a dual-axis tracker and re-mounting of the array on an improved frame.
I need to double the number of batteries in the battery bank to optimize the MPPT controller's function. The controller limits current to 2A for each battery in the bank. This results in a mximum of 250w being drawn from the array. The array is capable of generating 580w.
Saturday, May 26, 2018
more system script work
System scripts have been installed, some with timers. A new script, actuator.py, has been written along with a service and timer. These combined with data collector script edits, plpace operation between 6:00AM and 6:00PM, daily, The edits in conjunction with the actuator script run the linear actuator three times each day. Two extensions, one at noon and one at 3:00PM, follow the position of the sun. The third is a retraction that restores the array to the sunrise position for the next day.
The script for the sensor needs to be written. The sensor needs to be accompanied by another, stationary sensor. The stationary sensor can be used as a reference for the sun path.
The script for the sensor needs to be written. The sensor needs to be accompanied by another, stationary sensor. The stationary sensor can be used as a reference for the sun path.
System Prototype PCB
Included here is an image of the system's one pcb, a prototyping board used to mount several; components in one convenient place. The image is self-explanatory.
Sunday, May 13, 2018
more modifications to the system scripts
The data collection script needs to be modified to run between 6:00 AM and 6:00 PM.
The script that writes the header has been modified to skip if the header has been written already for a given day.
Sensor scripts need to be written.
Sensor data collection/storage, and condtion determination contingencies scripts are needed.
Cloudy days, overcast days, and changes in season.
Cross-validation with calculations will be simple.
s-retract.py actuator script
import RPi.GPIO as GPIO
import time
# CHECK wires at RPi header for loose connections when problems occur
# HIGH is low and LOW is high in GPIO using the RPi.GPIO library
# ADD PWM
# 35 seconds is the actuator run time from beginning to end.
# Initialize software and hardware
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(26,GPIO.OUT)
GPIO.setup(19,GPIO.OUT)
GPIO.setup(13,GPIO.OUT)
GPIO.setup(6,GPIO.OUT)
# Shut all relays off. Relays are usually off on power up.
GPIO.output(26,GPIO.HIGH)
GPIO.output(19,GPIO.HIGH)
GPIO.output(13,GPIO.HIGH)
GPIO.output(6,GPIO.HIGH)
print('Initialized.')
#####################
# Do this at the end of the day, at 6:00 PM
#Retract on
GPIO.output(26,GPIO.LOW)
GPIO.output(19,GPIO.LOW)
print('Retracting...')
time.sleep(32)
#Retract off
GPIO.output(26,GPIO.HIGH)
GPIO.output(19,GPIO.HIGH)
print('Retraction done.')
s-extend.py actuator script
import RPi.GPIO as GPIO
import time
# CHECK wires at RPi header for loose connections when problems occur
# HIGH is low and LOW is high in GPIO using the RPi.GPIO library
# ADD PWM
# 35 seconds is the actuator run time from beginning to end.
# Initialize software and hardware
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(26,GPIO.OUT)
GPIO.setup(19,GPIO.OUT)
GPIO.setup(13,GPIO.OUT)
GPIO.setup(6,GPIO.OUT)
# Shut all relays off. Relays are usually off on power up.
GPIO.output(26,GPIO.HIGH)
GPIO.output(19,GPIO.HIGH)
GPIO.output(13,GPIO.HIGH)
GPIO.output(6,GPIO.HIGH)
print('Initialized.')
#####################
# Do this at the end of the day, at 6:00 PM
#Extend on 12 seconds
#Extend on
GPIO.output(13,GPIO.LOW)
GPIO.output(6,GPIO.LOW)
print('Extending...')
time.sleep(16)
#Extend off
GPIO.output(13,GPIO.HIGH)
GPIO.output(6,GPIO.HIGH)
print('Extension done.')
Relay actuator control, sensor development
The relays mentioned earlier are to be connected to the RPi using a screw-down type connector mounted on the relay card. The original header will be removed. A ribbon cable with stackable header will be mounted on the RPi GPIO header. The RTC will 'stack' on top of the headers pins, 1,3,5,7,9. The ribbon cable will be cut and the selected wires attached to the relau card using the screw down connector. Ordinary breadboarding connector wires were used but proved too unreliable.
Intermittent connections caused problems.
The controller script will be in python language.
Currently there are two scripts, s-extend.py and s-retract.py.
The extend script extends the actuator for 17 seconds. The script is run twice each day, once in mid-morning, oonce in the afternoon.
The retract script is run once each day at the end of each day and runs the amount of time of the sum of the two extend scripts, or approximately 34 seconds.
-----------------------------------------------------
The sensor has been mounted on the array. Currently, the sensor is on the pipe with the array. The sensor will be mounted on a stationary point to maintain the same position with respect to the sun.
A new mounting mechanism is needed. The aluminum strips are too flexible.
The wires have been connected to the sensor and run into the house and to the staion.
Each wire has a different color piece of heatshrink tubing for identification.
A PCF8591 will be used to read the data. The PCF8591 card is mounted on the master breadboard, as is the RPi.
A buck voltage converter is also mounted on the master board. This will convert the battery bank 24vdc to 5vdc for the Raspberry Pi. The connection between the supply and the RPi is a mini-USB connector matching the socket on the RPi.
Intermittent connections caused problems.
The controller script will be in python language.
Currently there are two scripts, s-extend.py and s-retract.py.
The extend script extends the actuator for 17 seconds. The script is run twice each day, once in mid-morning, oonce in the afternoon.
The retract script is run once each day at the end of each day and runs the amount of time of the sum of the two extend scripts, or approximately 34 seconds.
-----------------------------------------------------
The sensor has been mounted on the array. Currently, the sensor is on the pipe with the array. The sensor will be mounted on a stationary point to maintain the same position with respect to the sun.
A new mounting mechanism is needed. The aluminum strips are too flexible.
The wires have been connected to the sensor and run into the house and to the staion.
Each wire has a different color piece of heatshrink tubing for identification.
A PCF8591 will be used to read the data. The PCF8591 card is mounted on the master breadboard, as is the RPi.
A buck voltage converter is also mounted on the master board. This will convert the battery bank 24vdc to 5vdc for the Raspberry Pi. The connection between the supply and the RPi is a mini-USB connector matching the socket on the RPi.
Subscribe to:
Posts (Atom)
RPi4 shrink & backup
I decided to make a backup copy of the operating system on the Raspberry Pi 4. A lot of changes were made to the original setup, including...
-
In a recent post I presented the equation for energy incident on a solar panel (Sm). Here I present the set of equations used to calcu...
-
The new web page, for monitoring the solar power station activity, has two charts, one above the other. There are links to a copy of my ol...
-
I've been building my power station with n eye to minimizing the cost without sacrificing quality. I've mounted the array on a...
