create account

Solar power project step 4, testing the self powered brain, a Photon Particle microcontroller by fourth

View this thread on: hive.blogpeakd.comecency.com
· @fourth ·
$1.35
Solar power project step 4, testing the self powered brain, a Photon Particle microcontroller
[_Part 3: Solar power project step 3, circuit designs for charging / power out switch for continuous(ish) use, and new batteries_](https://steemit.com/ecotrain/@fourth/solar-power-project-step-3-circuit-designs-for-charging-power-out-switch-for-continuous-ish-use-and-new-batteries)
[_Part 2: Solar power project step 2, battery test with inverter_](https://steemit.com/ecotrain/@fourth/solar-power-project-step-2-battery-test-with-inverter)
[_Part 1: initial purchase and testing_](https://steemit.com/ecotrain/@fourth/solar-power-project-step-1-initial-purchase-and-testing)

Before I go on I wanted to test out the "brain" of the project which will make it smart and connected to apps and so on. For this I chose a microcontroller that I've tried before to great success, a Particle Photon.

<hr/>

https://cdn-shop.adafruit.com/970x728/2722-00.jpg

<hr/>

The [Photon](https://store.particle.io/) is a WiFi connected microcontroller, very similar to the famous Arduino. That means that it works at 3.3v (Arduinos also come in 5v but not the Photon), has multiple input / output pins, including some built in pull up / down resistors, and specialised data line pins.

However the thing that differentiates it from the competition in Arduino, Teensy and so on, is that it is WiFi enabled and integrated with Particle's cloud service out of the box. You can set it up just using their Android or iOS app within a couple of minutes and tinker with it using the default firmware binary called ... Tinker! It listens to cloud commands to turn pins on or off, or listen to them for input.

They also seem like a really great company in general. Watch their slightly awkward ad for this their new mesh networking microcontroller project (which I'm very excited about too incidently):

https://www.youtube.com/watch?v=QwifCetjoFU

## The self powered brain

My hope is that I can use a LiPoly battery, a small 4W solar panel and a charging regulator with the Photon to allow it to be completely self powered. I imagine that as a back up or boost power it can be powered and charge off the bigger lead acid batteries too, but as far as possible off the sun, just like the rest of the solar charging system.

<hr/>

![IMG_20180522_185719.jpg](https://cdn.steemitimages.com/DQmaUjcBCbkUjTruHrUYNyg2nWzec2NNyqx5yGiRdm9ZWZ2/IMG_20180522_185719.jpg)

<hr/>

![IMG_20180523_110032.jpg](https://cdn.steemitimages.com/DQmdRV5FxNGn43F5Tri2R4xQ9pm8c58NyhJ1HJhzeuLBwps/IMG_20180523_110032.jpg)

<hr/>

I wrote a simple program from the Photon device firmware that recorded the battery value every 5 minutes to see how the charge was going, and also to check it for power usage, as by default it is in regular contact with the Particle cloud network via WiFi which obviously takes non-trivial amounts of power.

It charged very well, if quite slowly, so I was happy with the results. I also left it on overnight. It did get right down to about 5% battery, and then level and start rising in the morning. That was only because it sunny which was lucky, but it's good to know that it will drain fast in the night.

There are a lot of things I can do to reduce power consumption, but turning off cloud connectivity sometimes, or idling it, etc. so there's a lot of scope for optimisation. The firmware libraries and APIs are very flexible and I'm looking forward to diving into them further.

### Other work in preparation for system building.

I also filled in a gap in the tool box top casing using some wood I had lying around. The colours happened to match so it wouldn't look too weird. The grooves are their for screws and nails and things, but I'd prefer for the surface to be as level as possible.

<hr/>

![IMG_20180524_124321.jpg](https://cdn.steemitimages.com/DQmUBB4sLUDEW5XRg5bj3DSX9cZx1bshWi3dEPDfXNYgjzz/IMG_20180524_124321.jpg)

<hr/>

By my guess I'm going to need a good amount of cable, and unlike the diagrams I made I need them to be coloured our I'm going to get really confused. Best thing for it was to recycle as much power cable as I could from things I'm throwing out anyway. I also had to sacrifice an extension board cable, but that's ok, I have several of them, and I can always rebuild it.

![IMG_20180524_120922.jpg](https://cdn.steemitimages.com/DQmVP4vy2KS7x9Bq8KdxwJssgT2V8TFCrqA5AFpHZwpSLrL/IMG_20180524_120922.jpg)

## Next, to build

I'm really going to build it next time, I have the stuff prepared and it's just a case of wiring it. It will take a lot of fiddly work but it will be worth it.

<a href=https://steemit.com/@ecotrain ><img src=https://cdn.steemitimages.com/DQmaKxri2VG7nnCGhwFgz4LJbajDwv5gBeF4YaHaUsRxHuW/ecotrain-supporter.jpg ></a>
👍  , , , , , , , , , , , , , , , , , , , ,
👎  
properties (23)
authorfourth
permlinksolar-power-project-step-4-testing-the-self-powered-brain-a-photon-particle-microcontroller
categoryecotrain
json_metadata{"tags":["ecotrain","solar","renewable","project","electronics"],"image":["https://cdn-shop.adafruit.com/970x728/2722-00.jpg","https://img.youtube.com/vi/QwifCetjoFU/0.jpg","https://cdn.steemitimages.com/DQmaUjcBCbkUjTruHrUYNyg2nWzec2NNyqx5yGiRdm9ZWZ2/IMG_20180522_185719.jpg","https://cdn.steemitimages.com/DQmdRV5FxNGn43F5Tri2R4xQ9pm8c58NyhJ1HJhzeuLBwps/IMG_20180523_110032.jpg","https://cdn.steemitimages.com/DQmUBB4sLUDEW5XRg5bj3DSX9cZx1bshWi3dEPDfXNYgjzz/IMG_20180524_124321.jpg","https://cdn.steemitimages.com/DQmVP4vy2KS7x9Bq8KdxwJssgT2V8TFCrqA5AFpHZwpSLrL/IMG_20180524_120922.jpg","https://cdn.steemitimages.com/DQmaKxri2VG7nnCGhwFgz4LJbajDwv5gBeF4YaHaUsRxHuW/ecotrain-supporter.jpg"],"links":["https://steemit.com/ecotrain/@fourth/solar-power-project-step-3-circuit-designs-for-charging-power-out-switch-for-continuous-ish-use-and-new-batteries","https://steemit.com/ecotrain/@fourth/solar-power-project-step-2-battery-test-with-inverter","https://steemit.com/ecotrain/@fourth/solar-power-project-step-1-initial-purchase-and-testing","https://store.particle.io/","https://www.youtube.com/watch?v=QwifCetjoFU","https://steemit.com/@ecotrain"],"app":"steemit/0.1","format":"markdown"}
created2018-06-25 18:34:48
last_update2018-06-25 18:34:48
depth0
children8
last_payout2018-07-02 18:34:48
cashout_time1969-12-31 23:59:59
total_payout_value1.064 HBD
curator_payout_value0.289 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,666
author_reputation146,292,163,241
root_title"Solar power project step 4, testing the self powered brain, a Photon Particle microcontroller"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id62,235,849
net_rshares552,596,191,185
author_curate_reward""
vote details (22)
@smithlabs ·
$0.39
Make a copy of your diagram. As you make each connection, put a small mark across the wire at that end. When you do the other end connection mark it too. When all wires are marked off, you are finished. *`:D`*
👍  ,
properties (23)
authorsmithlabs
permlinkre-fourth-solar-power-project-step-4-testing-the-self-powered-brain-a-photon-particle-microcontroller-20180805t021249953z
categoryecotrain
json_metadata{"tags":["ecotrain"],"app":"steemit/0.1"}
created2018-08-05 02:13:00
last_update2018-08-05 02:13:00
depth1
children4
last_payout2018-08-12 02:13:00
cashout_time1969-12-31 23:59:59
total_payout_value0.291 HBD
curator_payout_value0.097 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length209
author_reputation125,286,074,974,550
root_title"Solar power project step 4, testing the self powered brain, a Photon Particle microcontroller"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id67,144,529
net_rshares251,812,006,961
author_curate_reward""
vote details (2)
@fourth ·
Thanks man, I ended up doing something very similar to that.
👍  
properties (23)
authorfourth
permlinkre-smithlabs-re-fourth-solar-power-project-step-4-testing-the-self-powered-brain-a-photon-particle-microcontroller-20180903t130226605z
categoryecotrain
json_metadata{"tags":["ecotrain"],"community":"steempeak","app":"steempeak"}
created2018-09-03 13:02:27
last_update2018-09-03 13:02:27
depth2
children3
last_payout2018-09-10 13:02: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_length60
author_reputation146,292,163,241
root_title"Solar power project step 4, testing the self powered brain, a Photon Particle microcontroller"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,183,713
net_rshares244,457,142
author_curate_reward""
vote details (1)
@haikubot ·
<em>Thanks man, I ended 
Up doing something very 
Similar to that. 
</em>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<sup>- fourth</sup>

---
<sup><sup><em>I'm a bot. I detect haiku.</em></sup></sup>
👍  
properties (23)
authorhaikubot
permlink20180903t130234431z
categoryecotrain
json_metadata{"tags":["test"],"app":"steemjs/examples"}
created2018-09-03 13:02:33
last_update2018-09-03 13:02:33
depth3
children1
last_payout2018-09-10 13:02:33
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_length258
author_reputation1,821,968,927,944
root_title"Solar power project step 4, testing the self powered brain, a Photon Particle microcontroller"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,183,718
net_rshares238,345,714
author_curate_reward""
vote details (1)
@smithlabs ·
Glad you got it done! A finished project is a satisfying thing. Enjoy!
                                                                                                                                                                                                             
**`:)`**
properties (22)
authorsmithlabs
permlinkre-fourth-re-smithlabs-re-fourth-solar-power-project-step-4-testing-the-self-powered-brain-a-photon-particle-microcontroller-20180903t174716595z
categoryecotrain
json_metadata{"tags":["ecotrain"],"app":"steemit/0.1"}
created2018-09-03 17:47:18
last_update2018-09-03 17:47:18
depth3
children0
last_payout2018-09-10 17:47:18
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_length285
author_reputation125,286,074,974,550
root_title"Solar power project step 4, testing the self powered brain, a Photon Particle microcontroller"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,207,597
net_rshares0
@steemmakers ·
$0.12
<div class='pull-right'><center><a href='http://www.steemmakers.com'><img src='https://www.steemmakers.com/img/comment_logo_makers.png' /></a></center></div><b>Congratulations</b> This post has been upvoted by SteemMakers. We are a community-based project that aims to support makers and DIYers on the blockchain in every way possible. <br/><br/>Join our <a href='https://discord.gg/EFGbRuW'>Discord Channel</a> to connect with us and nominate your own or somebody else's posts in our review channel.<br/><br/><b>Help us to reward you for making it !</b> Join <a href='https://www.steemmakers.com/steemmakerstrail.php'>our voting trail</a> or <a href='https://www.steemmakers.com/steemmakersdelegation.php'>delegate steem power</a> to the community account. <br/><br/>Your post is also presented on the community website <a href='http://www.steemmakers.com'>www.steemmakers.com</a> where you can find other selected content. <br/><br/>If you like our work, please consider upvoting this comment to support the growth of our community. Thank you.
👍  ,
properties (23)
authorsteemmakers
permlinkre-fourth-solar-power-project-step-4-testing-the-self-powered-brain-a-photon-particle-microcontroller-20180626t062556752z
categoryecotrain
json_metadata""
created2018-06-26 06:25:51
last_update2018-06-26 06:25:51
depth1
children2
last_payout2018-07-03 07:15:39
cashout_time1969-12-31 23:59:59
total_payout_value0.111 HBD
curator_payout_value0.011 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,045
author_reputation1,907,312,584,548
root_title"Solar power project step 4, testing the self powered brain, a Photon Particle microcontroller"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id62,303,301
net_rshares50,074,170,656
author_curate_reward""
vote details (2)
@areycarcardona ·
Excellent post

The human being always looking to have the comfort that allows it, the guarantee of a life in harmony, with the existing advances, has made indispensable the electrical energy in its environment. Therefore, the importance of using electronic devices to fill the needs that invade the being and in many cases be in tune with the modern world. However, you can still find cities, towns, localities, away from modernism and therefore lacking the service, using even rudimentary means that allow them to favor their needs.
It is a kind of module that aims to try to take advantage of the greater amount of energy that comes from solar radiation. The term used to define it comes from solar collectors, which were used to obtain hot water, commonly for domestic purposes and photovoltaic panels used to generate electricity. With regard to these photovoltaic panels, it is important to note that they are formed by a few cells that are responsible for converting light into electricity. These same cells are also known as photovoltaic cells, which means "light-electricity". These are dependent on the photovoltaic effect, in order to transform the energy of the Sun, and in this way make a current pass between two plates with opposite electrical charges.
The ecological energies are more profitable than the energy produced by fossil fuels, because they are inexhaustible. The lack of interest or ignorance towards this type of alternative energy, by public and private entities has led to a huge global backwardness, because with this well-known green energy can be resolved irregularities that occur daily with the use of electric power. The photovoltaic energy is a type of energy that if it started to explode in a massive way could obtain an electrical improvement for the whole world.
properties (22)
authorareycarcardona
permlinkre-steemmakers-re-fourth-solar-power-project-step-4-testing-the-self-powered-brain-a-photon-particle-microcontroller-20180627t185913165z
categoryecotrain
json_metadata{"tags":["ecotrain"],"app":"steemit/0.1"}
created2018-06-27 18:59:18
last_update2018-06-27 18:59:18
depth2
children0
last_payout2018-07-04 18:59:18
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_length1,803
author_reputation129,726,201
root_title"Solar power project step 4, testing the self powered brain, a Photon Particle microcontroller"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id62,521,422
net_rshares0
@fourth ·
Thanks so much guys, I'm really happy you found my post and I got to discover about your group, it looks like something I would be interested in participating in.
properties (22)
authorfourth
permlinkre-steemmakers-re-fourth-solar-power-project-step-4-testing-the-self-powered-brain-a-photon-particle-microcontroller-20180626t201847884z
categoryecotrain
json_metadata{"tags":["ecotrain"],"app":"steemit/0.1"}
created2018-06-26 20:18:48
last_update2018-06-26 20:18:48
depth2
children0
last_payout2018-07-03 20:18:48
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_length162
author_reputation146,292,163,241
root_title"Solar power project step 4, testing the self powered brain, a Photon Particle microcontroller"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id62,393,211
net_rshares0