create account

Hardware Project with a Friend - Micro-controller for Solar Powered Chicken Coop by kirkins

View this thread on: hive.blogpeakd.comecency.com
· @kirkins · (edited)
$0.77
Hardware Project with a Friend - Micro-controller for Solar Powered Chicken Coop
I'd like to share a [project I'm working on for a friend](https://github.com/kirkins/solar-panel-control). He is a 4th year Mechanical Engineering student at Western University in Ontario.

![prototype.jpg](https://ipfs.busy.org/ipfs/QmcZ9iBMMu2yHidy5L3aKMSnnkDcPnQTtdinoQAWgujsDa)

His father has built a chicken coop on his property and as part of his hobby bought a Solar Panel. This solar panel will be used to heat the chicken coup during the winter, and run a large light. It also has some external plugs that allow devices to be plugged in charged from outside. One of the crucial parts is the inverter which converts electricity between AC and DC.

![photo_2019-11-26_21-45-38.jpg](https://ipfs.busy.org/ipfs/QmTZYHAXKz4EpJXm8iqSURzCRdFSKcP2FqAbV75zN2KF7W)


My part of the project is to write the code for the microcontroller which controls the flow of electricity, for example deciding if we should charge the battery or heat the chicken coop, based on things like battery temperature, battery charge, and temperature of the coop. There are also some safety features such as turning off the transformer if the battery or microcontroller case get too hot. 

![box.jpg](https://ipfs.busy.org/ipfs/QmRzFKDCJDqDYCR9JaCTqwogULot1NnBCPvmZsEGkWhH8R)


**General overview of the program is as follows:**

**- Turns on and off inverter, 12v load, and 24V load based on temperature, and battery states.**

**- Gives three LED outputs to convey simple information about the state.**

**- Relays state of 2 LEDS from the inverter to the remote switch.**

**- Relays the push of the remote switch to the inverter.**

**- Turns fans on and off based on temp to avoid overheating.**

**- errors that occur can be saved as a variable and displayed as a blinking red LED. The number of blinks can be looked up by a printed table.**

**- Errors include Voltage out of normal range, and temperature out of normal range.**

**- Water temperature is monitored to avoid boiling or freezing.**

**- BMS *(Battery Management System)* is monitored to determine if loads should be active or disconnected**

Weโ€™re in different cities at the moment so collaboration has been one of the most difficult aspects. My typical programming process is to write code and then test it to see the result and do this many times over and over quickly. However with this project I keep needing to get him to upload the sketch and test it, this has been a huge headache and causing issues on both ends. We plan to setup a remote desktop on his laptop connected to the Arduino so that I can upload sketches and test the serial output myself.

![photo_2019-11-13_19-06-00.jpg](https://ipfs.busy.org/ipfs/Qmb13yF5VGZSn6SUDxvYmsvj4bYKLGQnmzShJVWotKzZpG)


Well weโ€™re using Arduino for this project weโ€™re interested in exploring other micro-controllers that have more pins. Arduino is based on C++ but gives you a lot of methods out of the box that makes things easier. So Iโ€™m interested to find out what steps will be needed to go from Arduino based projects to micro-controllers running C++.
๐Ÿ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
๐Ÿ‘Ž  
properties (23)
authorkirkins
permlinkhardware-project-with-a-friend-micro-controller-for-solar-powered-chicken-coop
categoryembedded
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["embedded","iot","programming","solar","stem"],"users":[],"links":["https://github.com/kirkins/solar-panel-control"],"image":["https://ipfs.busy.org/ipfs/QmcZ9iBMMu2yHidy5L3aKMSnnkDcPnQTtdinoQAWgujsDa","https://ipfs.busy.org/ipfs/QmTZYHAXKz4EpJXm8iqSURzCRdFSKcP2FqAbV75zN2KF7W","https://ipfs.busy.org/ipfs/QmRzFKDCJDqDYCR9JaCTqwogULot1NnBCPvmZsEGkWhH8R","https://ipfs.busy.org/ipfs/Qmb13yF5VGZSn6SUDxvYmsvj4bYKLGQnmzShJVWotKzZpG"]}
created2019-11-28 04:24:18
last_update2019-11-28 05:01:57
depth0
children4
last_payout2019-12-05 04:24:18
cashout_time1969-12-31 23:59:59
total_payout_value0.386 HBD
curator_payout_value0.382 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,055
author_reputation40,750,987,805,431
root_title"Hardware Project with a Friend - Micro-controller for Solar Powered Chicken Coop"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id92,897,147
net_rshares3,664,447,358,375
author_curate_reward""
vote details (41)
@libert ·
@tipu curate

Posted using [Partiko Android](https://partiko.app/referral/libert)
๐Ÿ‘  
properties (23)
authorlibert
permlinklibert-re-kirkins-hardware-project-with-a-friend-micro-controller-for-solar-powered-chicken-coop-20191128t045824097z
categoryembedded
json_metadata{"app":"partiko","client":"android"}
created2019-11-28 04:58:24
last_update2019-11-28 04:58:24
depth1
children1
last_payout2019-12-05 04:58:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length81
author_reputation19,208,620,620,574
root_title"Hardware Project with a Friend - Micro-controller for Solar Powered Chicken Coop"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id92,897,613
net_rshares3,197,852,588
author_curate_reward""
vote details (1)
@tipu ·
$0.05
<a href="https://tipu.online/curator?libert" target="_blank">Upvoted &#128076;</a> (Mana: 10/15 - <a href="https://steemit.com/steem/@tipu/tipu-curate-project-update-recharging-curation-mana" target="_blank">need recharge?</a>)
๐Ÿ‘  
properties (23)
authortipu
permlinkre-libert-re-kirkins-hardware-project-with-a-friend-micro-controller-for-solar-powered-chicken-coop-20191128t045824097z-20191128t045904
categoryembedded
json_metadata""
created2019-11-28 04:59:06
last_update2019-11-28 04:59:06
depth2
children0
last_payout2019-12-05 04:59:06
cashout_time1969-12-31 23:59:59
total_payout_value0.026 HBD
curator_payout_value0.026 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length227
author_reputation55,926,501,799,545
root_title"Hardware Project with a Friend - Micro-controller for Solar Powered Chicken Coop"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id92,897,629
net_rshares320,837,976,985
author_curate_reward""
vote details (1)
@mytechtrail ·
I am a big Raspberry Pi fan (I have 11) and use a couple of them for monitoring wired temperature sensors in the house. I am teaching myself Python so that I can monitor and log a couple temperature sensors that send there readings wirelessly (915MHz motenio's). I used to have a RPi monitoring my solar charge controller and battery SOC (check out my older posts). I moved and do not have the solar, but hope to get back into it in the future.

You could add the STEM tag to these posts and earn yourself some STEM tokens.

Drop me a line if I can answer any questions about Raspberry Pi's.
๐Ÿ‘  
properties (23)
authormytechtrail
permlinkre-kirkins-q1nxhs
categoryembedded
json_metadata{"tags":["embedded"],"app":"steempeak/2.1.1"}
created2019-11-28 04:51:27
last_update2019-11-28 04:51:27
depth1
children1
last_payout2019-12-05 04:51:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length591
author_reputation19,007,675,085,002
root_title"Hardware Project with a Friend - Micro-controller for Solar Powered Chicken Coop"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id92,897,498
net_rshares3,133,075,972
author_curate_reward""
vote details (1)
@kirkins ·
Thanks I haven't heard of STEM tokens, I'll have to check that out.
properties (22)
authorkirkins
permlinkre-mytechtrail-re-kirkins-q1nxhs-20191128t050005148z
categoryembedded
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["embedded"],"users":[],"links":[],"image":[]}
created2019-11-28 05:00:06
last_update2019-11-28 05:00:06
depth2
children0
last_payout2019-12-05 05:00:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length67
author_reputation40,750,987,805,431
root_title"Hardware Project with a Friend - Micro-controller for Solar Powered Chicken Coop"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id92,897,652
net_rshares0