Sun-tracking mirrors controlled by Arduino?

1,165 views
Skip to first unread message

Nick Smith

unread,
Mar 13, 2017, 6:21:30 AM3/13/17
to Sheffield Hackspace


I'd like to build 5 super cheap heliostats (mirrors that track the sun) for my garden, controlled by a single Arduino. Quite a few people have done this before, so I'm not too worried about downloading & modifying some suitable controller code. e.g., http://www.cerebralmeltdown.com/open-sun-harvesting-project

I'm less confident about my electronic design! How does this look?

1x Arduino Mega 2560 (£6)
10x EasyDriver motor driver boards (£1/ea)
1x DS3231 module real time clock £1
10x NEMA 17 stepper motors, (£6.26/ea), 12V 0.4A, 1.6N.cm detent torque, 28N.cm holding torque
20x micro limit switches (£1.12/10 pk)
12V PSU, 2.1mm

I'd plan on only powering 1 EasyDriver board+stepper motor at a time, so the maximum current should be pretty low. Only 2 motors are wired up for clarity, but there should be enough I/O pins for 10 motors (2 per mirror).

The EasyDriver boards will be indoors, next to the Arduino. I'd run the 4-core cables outdoors to each stepper motor and the signal wires from the limit switches separately, to try to reduce noise. The cable runs will be a maximum of 4m.

I'd appreciate any feedback or suggestions. Thanks!

Andy Kirby

unread,
Mar 13, 2017, 7:13:17 AM3/13/17
to sheffield-har...@googlegroups.com

Looks like a fun project.

The wiring would be a bitch (too much and introduce loads of issues that you could not code around). Switching winding current over that sort of wire length would radiate a whole bunch of RFI and give you weired switching waveforms.

My best advice would be to drop the arduino's out, and replace them with 1 ESP8266 module per mirror and mount everything on the back of the mirrors. LEavign only DC power to run around your array.

This also makes the project a bit more scalable in that you could start out doing one (wifi over the air code downloads) and expand your array as you wanted one at a time. Until you either run out of funds or garden.

Where you feel the need to run cables then it is power only. The control can be done over wifi to the ESP's. Personally I would ditch running power and use a solar panel on each mirror assembly. But there could be advantages to running DC power, the cabling wills till be tedious but not as much so and at least electrically you have removed the issues mentioned above.

Tracking is an interesting thing, I notice from your kit list. There is no light sensors (LDR or digital module type) leaving me to assume you will be doing the tracking via idealized math. Do-able but not as good as having ldr based sensing on the mirror assemblies. Or better still a single separate pickup on an esp to pick up the current brightest point to pickup on next.

Something to consider is that on nights with good moonlight you might get enough light to get some (although much less than solar) out of your setup. But if there is no moon ie cloudy nights you would be better placed to save the power and not bother tracking that which is not there. There might be a similar argument applying to diffuse solar radiation (cloudy days) but you will only get real figures for this by doing.

Ok power consumption. This can be kept down if you implement power reducing sleeps between bursts of acquisition and re alignments. Also your mechanical design can help you with power consumption. Provided you use a lead screw or sufficiently geared down based set of actuators then even if you drop power to the steppers the mirror assembly will maintain position through the mechanical stiffness and friction. If you were driving the steppers directly you might implement a braked mode that shorts all the windings enhancing the effect and taking no power to do it. SOme drivers have a pin that enables this. Dunno bout the ones you have chosen. This is not available though on micro-stepped modes though only really on complete full, half, and quarter step increments. This is not really any hardship if you have geared down the stepper output as by doing so you increase the resolution to the point where you don't actually need micro-step modes. Two important considerations then, where you can reduce your power needs to the absolute minimum then you introduce the option for local solar and battery on each mirror assembly. However to do all the development work you might want to run a power lead out to get you started then add battery etc later when you know how much you are looking at needing. Once the code and power saving is optimized.

Which ever way you choose to go (Do-ocracy rules apply) have fun and share with us how you get on.


Cheers


Kirbs

--
You received this message because you are subscribed to the Google Groups "Sheffield Hackspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sheffield-hardware-...@googlegroups.com.
To post to this group, send email to sheffield-har...@googlegroups.com.
Visit this group at https://groups.google.com/group/sheffield-hardware-hackers.
For more options, visit https://groups.google.com/d/optout.

-- 
an...@kirbyand.co.uk
www.kirbyand.co.uk

Nick Smith

unread,
Mar 13, 2017, 8:55:00 AM3/13/17
to Sheffield Hackspace, an...@kirbyand.co.uk
That is some fantastic advice - many thanks :)


On Monday, 13 March 2017 11:13:17 UTC, Andy Kirby wrote:

My best advice would be to drop the arduino's out, and replace them with 1 ESP8266 module per mirror and mount everything on the back of the mirrors. LEavign only DC power to run around your array.


That sounds good. I'd have to implement some decent security to stop a hacker turning my mirrors into a death ray ;) (seriously though, very easy to start a fire if anything is at the focal point of the mirrors).
 
I've not used an ESP8266 before. Are the Wemos D1 mini's OK? $3.10/each! and connect each one to 2x EasyDriver motor driver boards? (I've seen some ESP8266 motor shields, but none that can drive 2 stepper motors?)

Where you feel the need to run cables then it is power only. The control can be done over wifi to the ESP's. Personally I would ditch running power and use a solar panel on each mirror assembly. But there could be advantages to running DC power, the cabling wills till be tedious but not as much so and at least electrically you have removed the issues mentioned above.


Maybe, but I think the extra cost of 5 small solar panels, 5 suitable batteries, 5 voltage converters, etc. isn't worth it to me. The mirrors will be all in a line, not spread out all over the garden, so running 12V power to them should be v.simple.
 

Tracking is an interesting thing, I notice from your kit list. There is no light sensors (LDR or digital module type) leaving me to assume you will be doing the tracking via idealized math. Do-able but not as good as having ldr based sensing on the mirror assemblies. Or better still a single separate pickup on an esp to pick up the current brightest point to pickup on next.


The heliostat designs I've seen online seem evenly split into those 2 camps: either track the brightest point with an LDR, or predict the sun position with some maths. For a fixed-location heliostat, I can't see any advantage in hunting around the sky to find the sun when it can be predicted so accurately.
 

Something to consider is that on nights with good moonlight you might get enough light to get some (although much less than solar) out of your setup. But if there is no moon ie cloudy nights you would be better placed to save the power and not bother tracking that which is not there. There might be a similar argument applying to diffuse solar radiation (cloudy days) but you will only get real figures for this by doing.


Yes, because of the slope of my garden, with lots of big trees nearby, etc. I'm probably only going to run the mirrors during the mornings, and have them powered down the rest of the day/night.

Cloudy days will be interesting - I can't see the mirrors doing much in that situation, but it will be fun to see!
 

Also your mechanical design can help you with power consumption. Provided you use a lead screw or sufficiently geared down based set of actuators then even if you drop power to the steppers the mirror assembly will maintain position through the mechanical stiffness and friction. If you were driving the steppers directly you might implement a braked mode that shorts all the windings enhancing the effect and taking no power to do it. SOme drivers have a pin that enables this. Dunno bout the ones you have chosen.


That braked mode sounds very neat. I know the EasyDriver boards have an Enabled pin that cuts off the driver board + motor.

I'll post again once I've put a mechanical design together.

Cheers

Nick Smith

unread,
Mar 13, 2017, 1:17:14 PM3/13/17
to Sheffield Hackspace, an...@kirbyand.co.uk


Revised design, with 5x Wemos D1 minis, one on each mirror with very short cable runs, controlled over WiFi, instead of the Arduino. It looks like the EasyDriver board can be set to use 3.3V for all its logic, as well as supply 3.3V/50mA to power the Wemos board, so I'd only need a 12V supply?

Graham Driver

unread,
Mar 14, 2017, 7:09:13 AM3/14/17
to Nick Smith, Sheffield Hackspace

Hi again


Lack of pictures aside (can anyone else see them?).


Andy's suggestion of solar/battery power leads to an elegant, modular system IMHO.  Working the power budget is key.


I don't know how often these things need to move but I am guessing maybe every 60s would be tops.


The current draw of a ESP8266 is maybe 70mA average so you would need to send them to deep sleep between moves. This reduces I down to a few uA but watch out for the quiescent of the 3V3 regulator - this can easily be 10mA so choose with care and avoid LM1117 - unfortunately this reg is preset on any number of modules including NodeMCU (and I think WeMOS).


OTA is very useful especially during initial pointing phase, it can be a pain to mix with deep-sleep but is do-able, either by a "push to program" button - which seems to rather miss the point - or just by careful timing when sending the OTA.


MQTT also provides a useful method to control/tweek  the devices provided that you have an MQTT server handy - Raspberry Pi zero W anyone?  and get the QOS right, and of course Wi-Fi.


I assume you will no longer need the RTC just use ntp?


regards


Graham













From: Nick Smith <ni...@climbers.net>
Sent: 14 March 2017 10:38
To: Graham Driver
Subject: Re: [SHH:5993] Sun-tracking mirrors controlled by Arduino?
 
On 14/03/2017 10:12, Graham Driver wrote:
> I see no pictures....

It works for me - possibly your email software doesn't like PNG format
images? Trying looking at it in any web browser instead?

https://lh3.googleusercontent.com/-odKTVppm9HM/WMbTOv3ofuI/AAAAAAAAAhw/tEmzdIFB0sAqcjSSM5cjTWGxLnCP6wg9ACLcB/s1600/circuit-esp8266.png

Cheers

>
>
> ------------------------------------------------------------------------
> *From:* 'Nick Smith' via Sheffield Hackspace
> <sheffield-har...@googlegroups.com>
> *Sent:* 13 March 2017 17:17
> *To:* Sheffield Hackspace
> *Cc:* an...@kirbyand.co.uk
> *Subject:* Re: [SHH:5993] Sun-tracking mirrors controlled by Arduino?
>
> <https://lh3.googleusercontent.com/-odKTVppm9HM/WMbTOv3ofuI/AAAAAAAAAhw/tEmzdIFB0sAqcjSSM5cjTWGxLnCP6wg9ACLcB/s1600/circuit-esp8266.png>
> --
> You received this message because you are subscribed to the Google
> Groups "Sheffield Hackspace" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sheffield-hardware-...@googlegroups.com

> To post to this group, send email to
> sheffield-har...@googlegroups.com
Nick Smith, Climbers.net UK
Climbing websites & Photography http://climbers.net/

Nick Smith

unread,
Mar 14, 2017, 8:47:20 AM3/14/17
to Sheffield Hackspace, ni...@climbers.net

On Tuesday, 14 March 2017 11:09:13 UTC, grahamedriver wrote:

I don't know how often these things need to move but I am guessing maybe every 60s would be tops.


Yes, once every 60s should be enough to keep the mirrors on their target.
 

The current draw of a ESP8266 is maybe 70mA average so you would need to send them to deep sleep between moves. This reduces I down to a few uA but watch out for the quiescent of the 3V3 regulator - this can easily be 10mA so choose with care and avoid LM1117 - unfortunately this reg is preset on any number of modules including NodeMCU (and I think WeMOS).


I think the Wemos D1 mini uses an RT9013 regulator, which has a 25uA quiescent current, and 0.7uA in shutdown mode. So it should be really power efficient. The ESP8266 has a 'modem sleep' mode of 15mA while keeping a TCP connection open, which is rather impressive. 1mA for deep sleep, and 50mA for short range active WiFi. I don't need more than about 2-3m distance for the WiFi, so hopefully there is a way to force it to use low power/short range transmission. This should also increase security a bit?

I'm still not really clear if the Wemos D1 mini can be run from a +3.3V input (in which case does it even go through the RT9013 regulator?), or only from +5V. The product page isn't clear if the +3.3V is an input or output? https://www.wemos.cc/product/d1-mini.html

MQTT also provides a useful method to control/tweek  the devices provided that you have an MQTT server handy - Raspberry Pi zero W anyone?  and get the QOS right, and of course Wi-Fi.


I will have something like a Raspberry Pi 3 as a nearby server, so I can use that to control the devices.
 

I assume you will no longer need the RTC just use ntp?


 Yes, exactly. Just grab an accurate time off the network when it is switched on/comes out of deep sleep each morning.

Cheers

Nick Smith

unread,
Mar 14, 2017, 8:51:29 AM3/14/17
to Sheffield Hackspace, ni...@climbers.net
Just to include the power requirements of the EasyDriver boards: 50mA in normal use (per board), 9mA in 'disabled' mode (chip active, but power cut to motor), and 20uA in 'sleep' mode (chip sleeping). I'm not sure if the +3.3V output from the EasyDriver board that I want to use to drive the Wemos D1 mini is also cut in disabled/sleep mode. I'm hoping not!

Andy Kirby

unread,
Mar 14, 2017, 8:52:07 AM3/14/17
to Nick Smith, Sheffield Hackspace

Looking good.

All of what graham said.

On piccys I can see them when I click on them, they open in a browser window. But I have HTML etc disabled in my email and use txt only. So not really surprising to me that this happens. HTML disabled is by choice.

You would be wise to put debounce on your limit switches.

http://www.sheffieldhardwarehackers.org.uk/wordpress/2016/04/hacking-de-bounce-and-rotary-encoders/

The same principles apply. My usual method with microswitches is connect vcc to say NO, Gnd to NC, a resistor between NO and COMMON and then a capacitor between COMMON and NC, then take the switch signal from common.

VCC in your case is 3v or so.

Yes it is 3 wires per microswitch but it gives reliable and reasonably clean results. The switched signal is never floating especially as the contacts are in transition.

As an addendum to what graham said you need to watch the current draw on ESP units. it can easily get up to around 200ma in brief bursts when the unit is actually transmitting packets. Having a supply that can't cope with these sort of peaks will leave you with random brownouts, crashes and disrupted comms that is difficult to trace.

Whilst I appreciate you are trying to keep the costs down I love using those little smpsu units we get from alli express for these sort of projects they are pence and can source up to 3A. I use them with a 2200uF electrolytic cap across the supply and they work well. You might want to try with your linears and a similar cap first and it it proves unstable upgrade to one of the switchers.

https://www.aliexpress.com/item/Mini-3A-DC-DC-Converter-Adjustable-Step-down-Power-Supply-Module-replace-LM2596s/2038551825.html?spm=2114.01010208.3.2.428X12&ws_ab_test=searchweb0_0,searchweb201602_6_10065_10130_10068_433_434_10136_10137_10138_10060_10062_10056_10055_10054_302_10059_10099_10103_10102_10096_10052_10053_10050_10107_10051_10106_10084_10083_10080_10082_10081_10110_10111_10112_10113_10114_130_10078_10079_10073_10070_10122_10123_10126_6000000_10124,searchweb201603_5,afswitch_1,ppcSwitch_3,single_sort_0_price_asc&btsid=5f0f1d3a-f7a0-4480-a76c-90cb3dd9aaee&algo_expid=de862e93-dd5b-4022-b640-80f080532b51-0&algo_pvid=de862e93-dd5b-4022-b640-80f080532b51

Really bizarely all the aliexpress listings sell the better priced ones without using the actual chip name, you need to search for "Replace LM2596". Go figure.

They work out cheaper still if you shop around on aliexpress for lots of 5 or 10 at a time with free postage.

Given that you set the voltage to what you want I use these for just about everything even powering raspberry Pi's as they are very efficient (switch at 1Mhz, or so), I usually disable or get rid of the linear regs when building battery powered stuff or things I that I want to run cool, as linear regs they can be quite wasteful. 1 Mhz switch noise is also relatively easy to filter if your circuits are a bit noise sensitive.

Kirbs








On 13/03/17 17:17, Nick Smith wrote:


Revised design, with 5x Wemos D1 minis, one on each mirror with very short cable runs, controlled over WiFi, instead of the Arduino. It looks like the EasyDriver board can be set to use 3.3V for all its logic, as well as supply 3.3V/50mA to power the Wemos board, so I'd only need a 12V supply?

Andy Kirby

unread,
Mar 14, 2017, 9:07:02 AM3/14/17
to sheffield-har...@googlegroups.com

I can't offer much help with the Wemos D1 minis as I have not used them.

I think Graham, Rich L and maybe OJ have though, they are nice little breakout boards for the esp modules form what I saw of the one someone was using in the space.

For esp's I usually use ESP07's with the cheap little plain break out PCB's (to get them to 0.1" pinout) and get the newer versions which have more flash on board. The 07's usually have a u.FL connector on board for an external antenna, for which you will need a pigtail and either make your own aerial or buy one.

I like external aerials, and tend to dislike on board one's , although I do put up with the onboard ones sometimes for convenience.


Kirbs



On 14/03/17 12:51, 'Nick Smith' via Sheffield Hackspace wrote:
Just to include the power requirements of the EasyDriver boards: 50mA in normal use (per board), 9mA in 'disabled' mode (chip active, but power cut to motor), and 20uA in 'sleep' mode (chip sleeping). I'm not sure if the +3.3V output from the EasyDriver board that I want to use to drive the Wemos D1 mini is also cut in disabled/sleep mode. I'm hoping not!
--
You received this message because you are subscribed to the Google Groups "Sheffield Hackspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sheffield-hardware-...@googlegroups.com.
To post to this group, send email to sheffield-har...@googlegroups.com.

Janine Kirby

unread,
Mar 14, 2017, 9:07:29 AM3/14/17
to Graham Driver, Nick Smith, Sheffield Hackspace
I can see the pictures - but then I'm using Google mail on a Window's machine (boo/hiss!)

bw
Janine

On 14 March 2017 at 11:09, Graham Driver <graham...@hotmail.com> wrote:

Hi again


Lack of pictures aside (can anyone else see them?).


Andy's suggestion of solar/battery power leads to an elegant, modular system IMHO.  Working the power budget is key.


I don't know how often these things need to move but I am guessing maybe every 60s would be tops.


The current draw of a ESP8266 is maybe 70mA average so you would need to send them to deep sleep between moves. This reduces I down to a few uA but watch out for the quiescent of the 3V3 regulator - this can easily be 10mA so choose with care and avoid LM1117 - unfortunately this reg is preset on any number of modules including NodeMCU (and I think WeMOS).


OTA is very useful especially during initial pointing phase, it can be a pain to mix with deep-sleep but is do-able, either by a "push to program" button - which seems to rather miss the point - or just by careful timing when sending the OTA.


MQTT also provides a useful method to control/tweek  the devices provided that you have an MQTT server handy - Raspberry Pi zero W anyone?  and get the QOS right, and of course Wi-Fi.


I assume you will no longer need the RTC just use ntp?


regards


Graham













From: Nick Smith <ni...@climbers.net>
Sent: 14 March 2017 10:38
To: Graham Driver
Subject: Re: [SHH:5993] Sun-tracking mirrors controlled by Arduino?
 
On 14/03/2017 10:12, Graham Driver wrote:
> I see no pictures....

It works for me - possibly your email software doesn't like PNG format
images? Trying looking at it in any web browser instead?

https://lh3.googleusercontent.com/-odKTVppm9HM/WMbTOv3ofuI/AAAAAAAAAhw/tEmzdIFB0sAqcjSSM5cjTWGxLnCP6wg9ACLcB/s1600/circuit-esp8266.png

Cheers

>
>
> ------------------------------------------------------------------------
> *From:* 'Nick Smith' via Sheffield Hackspace

> *Sent:* 13 March 2017 17:17
> *To:* Sheffield Hackspace
> *Cc:* an...@kirbyand.co.uk
> *Subject:* Re: [SHH:5993] Sun-tracking mirrors controlled by Arduino?
>
> <https://lh3.googleusercontent.com/-odKTVppm9HM/WMbTOv3ofuI/AAAAAAAAAhw/tEmzdIFB0sAqcjSSM5cjTWGxLnCP6wg9ACLcB/s1600/circuit-esp8266.png>

>
>
> Revised design, with 5x Wemos D1 minis, one on each mirror with very
> short cable runs, controlled over WiFi, instead of the Arduino. It looks
> like the EasyDriver board can be set to use 3.3V for all its logic, as
> well as supply 3.3V/50mA to power the Wemos board, so I'd only need a
> 12V supply?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Sheffield Hackspace" group.
> To unsubscribe from this group and stop receiving emails from it, send

> To post to this group, send email to

> Visit this group at
> https://groups.google.com/group/sheffield-hardware-hackers.
> For more options, visit https://groups.google.com/d/optout.


--
Nick Smith, Climbers.net UK
Climbing websites & Photography http://climbers.net/

--
You received this message because you are subscribed to the Google Groups "Sheffield Hackspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sheffield-hardware-hackers+unsub...@googlegroups.com.
To post to this group, send email to sheffield-hardware-hackers@googlegroups.com.



--
----------------------------------------------------------------------------------
Dr Janine Kirby

Reader in Neurogenetics

Chair of PGT Committee, Medical School
Co-Course Leader for MSc in Genomic Medicine
Director of Learning and Teaching for Neuroscience (PGT)

Department of Neuroscience
Sheffield Institute for Translational Neuroscience (SITraN)
University of Sheffield
385a Glossop Road
Sheffield
S10 2HQ

Tel: +44 (0)114 22 22247
Fax: +44 (0)114 22 22290
Email: j.k...@sheffield.ac.uk
MSc in Genomic Medicine
Web: http://www.sheffield.ac.uk/neuroscience/genomicmedicine

Voted number one for student experience
Times Higher Education Student Experience Survey 2014-2015

Graham Driver

unread,
Mar 14, 2017, 9:16:13 AM3/14/17
to sheffield-har...@googlegroups.com, an...@kirbyand.co.uk

Hi


I use some modules callled ESP8266-201 though I have seen that designation on things which look like 12E


https://www.google.co.uk/search?q=ESP8266+201&tbm=isch&imgil=EDv10MzXiMqg9M%253A%253BfyyCXlnGq48OOM%253Bhttp%25253A%25252F%25252Fsmarpl.com%25252Fcontent%25252Fesp8266-esp-201-module-first-impressions&source=iu&pf=m&fir=EDv10MzXiMqg9M%253A%252CfyyCXlnGq48OOM%252C_&usg=__AQugrfaNi1JoduT-qKkRM6dYdOo%3D&biw=1920&bih=941&ved=0ahUKEwiAmIrOiNbSAhXkCcAKHa9FAz4QyjcIOA&ei=ievHWMCvHeSTgAavi43wAw#imgrc=EDv10MzXiMqg9M:


Minor (well major) problem was that on 2 out of 4 boards the ULF connector was put in 180deg rotated and so shorted the input. Guess which two modules I was trying to use.  Removing and refitting proved impossible so these boards now have pigtails soldered directly.


Passwords are mentioned in my file, but be aware that if you set one you will not be able to upload to SPIFFS OTA, though that might have been cured by now.


Several replies went to OP only, so some things I say now might seem a bit stage-left.


Graham






From: sheffield-har...@googlegroups.com <sheffield-har...@googlegroups.com> on behalf of Andy Kirby <an...@kirbyand.co.uk>
Sent: 14 March 2017 13:06
To: sheffield-har...@googlegroups.com
Subject: Re: [SHH:6000] Sun-tracking mirrors controlled by Arduino?
 

andy

unread,
Mar 14, 2017, 12:59:06 PM3/14/17
to sheffield-har...@googlegroups.com



-------- Forwarded Message --------
Subject: Re: [SHH:6000] Sun-tracking mirrors controlled by Arduino?
Date: Tue, 14 Mar 2017 16:31:31 +0000
From: andy <an...@kirbyand.co.uk>
To: Graham Driver <graham...@hotmail.com>

These are the breakout boards I use

https://www.aliexpress.com/item/New-and-original-ESP8266-ESP-07-ESP-08-ESP-12/32639607414.html?spm=2114.01010208.3.17.d3DlaV&ws_ab_test=searchweb0_0,searchweb201602_2_10065_10130_10068_433_434_10136_10137_10138_10060_10062_10056_10055_10054_302_10059_10099_10103_10102_10096_10052_10053_10050_10107_10051_10106_10084_10083_10080_10082_10081_10110_10111_10112_10113_10114_130_10078_10079_10073_10070_10122_10123_10126_6000000_10124,searchweb201603_3,afswitch_1,ppcSwitch_5,single_sort_0_price_asc&btsid=b6a48686-e5de-4a10-8cc9-4f29cb485553&algo_expid=04052551-7946-4697-9510-bcff13eccd5c-1&algo_pvid=04052551-7946-4697-9510-bcff13eccd5c

They have pads for a linear reg but I don't use them, if you get the
newer variant of the esp07 you can chop the top centimeter or so off the
breakout board as it is surplus and does nothing.

This is the newer variant of the esp8266-07 it has an s on the end and
no onboard antenna, plus 4M flash. Perfect for fitting inside a metal
case with an external antenna.

http://www.electrodragon.com/product/esp-07s-esp8266-serial-wifi-module/

http://www.esp8266.com/viewtopic.php?f=13&t=11677

Shop around for best prices I just linked the first items that looked
like the ones I use.

I like the 201 though, saves messing about soldering onto the breakout
board. Do you have to disconnect the on board antenna or is it a clever
u.FL connector that does it for you ??


Kirbs







On 14/03/17 13:15, Graham Driver wrote:
> Hi
>
>
> I use some modules callled ESP8266-201 though I have seen that
> designation on things which look like 12E
>
>
> https://www.google.co.uk/search?q=ESP8266+201&tbm=isch&imgil=EDv10MzXiMqg9M%253A%253BfyyCXlnGq48OOM%253Bhttp%25253A%25252F%25252Fsmarpl.com%25252Fcontent%25252Fesp8266-esp-201-module-first-impressions&source=iu&pf=m&fir=EDv10MzXiMqg9M%253A%252CfyyCXlnGq48OOM%252C_&usg=__AQugrfaNi1JoduT-qKkRM6dYdOo%3D&biw=1920&bih=941&ved=0ahUKEwiAmIrOiNbSAhXkCcAKHa9FAz4QyjcIOA&ei=ievHWMCvHeSTgAavi43wAw#imgrc=EDv10MzXiMqg9M:
>
>
> Minor (well major) problem was that on 2 out of 4 boards the ULF
> connector was put in 180deg rotated and so shorted the input. Guess
> which two modules I was trying to use. Removing and refitting proved
> impossible so these boards now have pigtails soldered directly.
>
>
> Passwords are mentioned in my file, but be aware that if you set one you
> will not be able to upload to SPIFFS OTA, though that might have been
> cured by now.
>
>
> Several replies went to OP only, so some things I say now might seem a
> bit stage-left.
>
>
> Graham
>
>
>
>
>
> ------------------------------------------------------------------------
> *From:* sheffield-har...@googlegroups.com
> *Sent:* 14 March 2017 13:06
> *To:* sheffield-har...@googlegroups.com
> *Subject:* Re: [SHH:6000] Sun-tracking mirrors controlled by Arduino?
>
>
> I can't offer much help with the Wemos D1 minis as I have not used them.
>
> I think Graham, Rich L and maybe OJ have though, they are nice little
> breakout boards for the esp modules form what I saw of the one someone
> was using in the space.
>
> For esp's I usually use ESP07's with the cheap little plain break out
> PCB's (to get them to 0.1" pinout) and get the newer versions which have
> more flash on board. The 07's usually have a u.FL connector on board for
> an external antenna, for which you will need a pigtail and either make
> your own aerial or buy one.
>
> I like external aerials, and tend to dislike on board one's , although I
> do put up with the onboard ones sometimes for convenience.
>
>
> Kirbs
>
>
>
> On 14/03/17 12:51, 'Nick Smith' via Sheffield Hackspace wrote:
>> Just to include the power requirements of the EasyDriver boards: 50mA
>> in normal use (per board), 9mA in 'disabled' mode (chip active, but
>> power cut to motor), and 20uA in 'sleep' mode (chip sleeping). I'm not
>> sure if the +3.3V output from the EasyDriver board that I want to use
>> to drive the Wemos D1 mini is also cut in disabled/sleep mode. I'm
>> hoping not!
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Sheffield Hackspace" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to sheffield-hardware-...@googlegroups.com
>> <mailto:sheffield-hardware-...@googlegroups.com>.
>> To post to this group, send email to
>> sheffield-har...@googlegroups.com
>> <mailto:sheffield-har...@googlegroups.com>.
>> Visit this group at
>> https://groups.google.com/group/sheffield-hardware-hackers.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> www.kirbyand.co.uk
> an...@kirbyand.co.uk
>
> --
> You received this message because you are subscribed to the Google
> Groups "Sheffield Hackspace" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sheffield-hardware-...@googlegroups.com
> <mailto:sheffield-hardware-...@googlegroups.com>.
> To post to this group, send email to
> sheffield-har...@googlegroups.com
> <mailto:sheffield-har...@googlegroups.com>.

Nick Smith

unread,
Mar 14, 2017, 2:14:11 PM3/14/17
to Sheffield Hackspace, nickco...@googlemail.com, an...@kirbyand.co.uk
On Tuesday, 14 March 2017 12:52:07 UTC, Andy Kirby wrote:

You would be wise to put debounce on your limit switches.

http://www.sheffieldhardwarehackers.org.uk/wordpress/2016/04/hacking-de-bounce-and-rotary-encoders/

The same principles apply. My usual method with microswitches is connect vcc to say NO, Gnd to NC, a resistor between NO and COMMON and then a capacitor between COMMON and NC, then take the switch signal from common.

VCC in your case is 3v or so.

Yes it is 3 wires per microswitch but it gives reliable and reasonably clean results. The switched signal is never floating especially as the contacts are in transition.


Thanks, I'm not really sure I understand, even after reading your article! But once I've got some microswitches and an ESP board, I can play around and hopefully it will make more sense.
 

As an addendum to what graham said you need to watch the current draw on ESP units. it can easily get up to around 200ma in brief bursts when the unit is actually transmitting packets. Having a supply that can't cope with these sort of peaks will leave you with random brownouts, crashes and disrupted comms that is difficult to trace.

Whilst I appreciate you are trying to keep the costs down I love using those little smpsu units we get from alli express for these sort of projects they are pence and can source up to 3A. I use them with a 2200uF electrolytic cap across the supply and they work well. You might want to try with your linears and a similar cap first and it it proves unstable upgrade to one of the switchers.

https://www.aliexpress.com/item/Mini-3A-DC-DC-Converter-Adjustable-Step-down-Power-Supply-Module-replace-LM2596s/2038551825.html?spm=2114.01010208.3.2.428X12&ws_ab_test=searchweb0_0,searchweb201602_6_10065_10130_10068_433_434_10136_10137_10138_10060_10062_10056_10055_10054_302_10059_10099_10103_10102_10096_10052_10053_10050_10107_10051_10106_10084_10083_10080_10082_10081_10110_10111_10112_10113_10114_130_10078_10079_10073_10070_10122_10123_10126_6000000_10124,searchweb201603_5,afswitch_1,ppcSwitch_3,single_sort_0_price_asc&btsid=5f0f1d3a-f7a0-4480-a76c-90cb3dd9aaee&algo_expid=de862e93-dd5b-4022-b640-80f080532b51-0&algo_pvid=de862e93-dd5b-4022-b640-80f080532b51

Really bizarely all the aliexpress listings sell the better priced ones without using the actual chip name, you need to search for "Replace LM2596". Go figure.

They work out cheaper still if you shop around on aliexpress for lots of 5 or 10 at a time with free postage.

Given that you set the voltage to what you want I use these for just about everything even powering raspberry Pi's as they are very efficient (switch at 1Mhz, or so), I usually disable or get rid of the linear regs when building battery powered stuff or things I that I want to run cool, as linear regs they can be quite wasteful. 1 Mhz switch noise is also relatively easy to filter if your circuits are a bit noise sensitive.


Wow - what a bargain of a little unit! :) I'll see what current I can get out of an EasyDriver when I feed it 12V first, but probably end up getting one of those.

Many thanks

Graham Driver

unread,
Mar 14, 2017, 6:09:00 PM3/14/17
to Nick Smith, Sheffield Hackspace
basically  my ESP 8266 stuff is the very last thing I shall worry about
From: Nick Smith <ni...@climbers.net>
Sent: 14 March 2017 20:39:19
To: Graham Driver
Subject: Re: [SHH:5997] Sun-tracking mirrors controlled by Arduino?
 
On 14/03/2017 20:02, Graham Driver wrote:
> but my ESP8266 stuff aren't routers, nor AP's, nor anything else much.
> They connect to explicitly named AP.
>
>
> Any risk really?

Absolutely. How do you know that the named AP it is connecting to is
yours, or an AP that is just pretending to be yours? How do you know the
AP itself hasn't been hacked? It is quite terrifying the number of very
common broadband routers that have serious security flaws, and have been
compromised. Or the hundreds of thousands of WiFi webcams that have been
compromised, etc.

Andy Kirby

unread,
Mar 14, 2017, 6:33:12 PM3/14/17
to sheffield-har...@googlegroups.com

Yeah they are the same ones. At least they are called what they are, on ebay, lol.


MP1584, cheap plentiful and work.


Heres a link to the data sheet.


http://www.monolithicpower.com/Products/Product-Detail/101/Step-down%28Buck%29/SwitchingRegulators/DC-DCPowerConversion/Converters/MP1584


Shutdown supply current 20uA

Quiescent current with no load 125 uA


Pretty awesome for what they are and cost.



Kirbs


PS switch bounce, chatter and floating switch lines was a big problem for the early 3D printer builds that were mostly attempted by software folk. They could not figure out why prints would fail and it looked like the carriage had hit an end stop although it was no where near. A cap and a resistor was all it took to sort it and no software debounce was needed. The folk that couldn't quite get their heads around it opted to disable the limit switch inputs when not actually homing, but could still get variability on the homed positions. best way to see it is to either write a sketch that counts switch transitions or hook up an oscilloscope and capture the bounce like I did in the article.


Software de-bounce is usually done by detecting the first transition, then coming back after a pause that is longer than the bounce typically occurs for and seeing what state the line has settled to. You will find it very wasteful of processor cycles and hard to use pin change interrupts with switches that bounce (and they all do as graham observed, unless you do some thing to stop it)





On 14/03/17 20:15, Graham Driver wrote:

I have used these switchers extensively with ESP8266, either down to 5V or straight down to 3V3, in either case with the 1000/2200uF cap.


http://www.ebay.co.uk/itm/10pcs-Hot-Sale-MP1584-Adjustable-3A-DC-DC-Converter-Step-Down-Voltage-Regulator-/271863755380?hash=item3f4c57b274:g:cY0AAOSwBahVTIdC

Output current: 3A(Max). 10x DC-DC Converter Adjustable Module replaceMP1584. DC-DC Adjustable Module. We will reply in 24 hours and solve your problem in a friendly way. Canada Rate (item arrived) 0.0% 47. | eBay!



Switch bounce is mysterious but real.  Can be fully cured by proper hardware, or ameliorated by kiddy-hardware (an R and a C),  and then sorted in software.


Basically you assume that a switch is either mkade or not, and moves smoothly between the two. In reality there is a period, and it might several milli-seconds long where you really don't know what it is going to be.


I guess Andy's article makes it sound like it's an encoder problem but it is all switches.....


Graham

From: 'Nick Smith' via Sheffield Hackspace <sheffield-har...@googlegroups.com>
Sent: 14 March 2017 18:14
To: Sheffield Hackspace
Cc: nickco...@googlemail.com; an...@kirbyand.co.uk
Subject: Re: [SHH:6006] Sun-tracking mirrors controlled by Arduino?
 
--
You received this message because you are subscribed to the Google Groups "Sheffield Hackspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sheffield-hardware-...@googlegroups.com.
To post to this group, send email to sheffield-har...@googlegroups.com.
Visit this group at https://groups.google.com/group/sheffield-hardware-hackers.
For more options, visit https://groups.google.com/d/optout.

Andy Kirby

unread,
Mar 14, 2017, 6:54:47 PM3/14/17
to sheffield-har...@googlegroups.com
Better security like we run in the space is to place all your NoT (notice not IoT) kit on its own wlan that does not connect/route to the net, with it's own AP and use reasonable encryption (WPA/WPA2).

Pi's are great for this, used as a NoT server, and can do all the infrastructure stuff that your NoT needs (MAC address access control lists, dhcp, dns, OTA etc)

You can provide a read only view of your NoT published out via an secured app or web pages on your pi as well as firewall your NoT wlan. The security in Linux is a whole bunch better than any of the embeded NoT devices will ever be.

I do sometimes wonder why people would, not, put their electrical switches on the outside of their house for anyone passing to play with, but are desperate to publish their NoT kit straight out onto the net.

But hey what would I know. This is why I do tech and avoid people. Lol


Kirbs
--
You received this message because you are subscribed to the Google Groups "Sheffield Hackspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sheffield-hardware-...@googlegroups.com.
To post to this group, send email to sheffield-har...@googlegroups.com.

Graham Driver

unread,
Mar 15, 2017, 5:43:34 AM3/15/17
to sheffield-har...@googlegroups.com, an...@kirbyand.co.uk
Hi

Maybe some kind person would organise some kind of Saturday workshop/event 'Minimal safety measures for your connected space'.

My personal approach is to connect as little as possible - which sounds unlikely as I am well known for the number of connected devices I run  but I allow no inward connections, I have no  ESPs with proprietary Android apps dimming lights, no on-line logging, no on-line graphing, no cloud storage, etc. No port forwarding, no DMZ, etc. 

My banking computer does not have WiFi. My router was reconfigured before being connected. Specific devices are blocked in and out - in case my printer should take it into its head to forward all PDFs to an address in Russia.

Is this enough?  Probably not, is it all pointful? Probably not. Basically I have little understanding.

People talk about IOT but I have an Intranet of ESP things which I don't worry about.

Regards

Graham
From: sheffield-har...@googlegroups.com <sheffield-har...@googlegroups.com> on behalf of Andy Kirby <an...@kirbyand.co.uk>
Sent: 14 March 2017 22:54:41
To: sheffield-har...@googlegroups.com
Subject: Re: [SHH:6013] Sun-tracking mirrors controlled by Arduino?
 

Andy Kirby

unread,
Mar 15, 2017, 7:37:03 AM3/15/17
to sheffield-har...@googlegroups.com

Sounds like a good idea.

I could probably do a shortish presentation. On securing tech, if only to get the initial concepts across, it all starts with the way we look at the situation and think about it. Followed by how we treat it and zone it. Thereafter a lot of solutions suggest themselves, form following function and all that. If we don't think about it in the right way our evaluation and resultant measures will be flawed from the outset.

--- snip here, don't read if not interested, brief overview follows ---

Maximum security can always be achieved by air-gapping (disconnecting) everything. But we like to be able to do tech that gives us something back, which means interconnection.

Similarly we want access to all our stuff wherever we are, but don't want anyone else to have access to it.

The end product we need then is a compromise of connectedness and access control. What we control access to and how we do it depends on where it is, and this is dependent on what zone we allocate it to.

Zoning classically divides into 3, Trusted, Untrusted and DMZ (De-militarised zone). In reality there are more zones than this making up our lives but we can use the 3 as the basis for running a comparison between adjoining zones where the number is  more than 3.

In a nominal home/hackspace automation or NoT set up then, the NoT should be a Trusted Zone, the home/space network/lan should be a DMZ and the internet is an Untrusted Zone. To get directly at the NoT from the INTERNET you have to be good enough or lucky enough to get through two levels of security. To use the NoT in your home/hackspace you have only one level of security (what ever it is) to work with. The level of security then is a function of where you are trying to get to/from across the zones.

Similarly if you want to run intrusion detection, you will see repeated attempts to get from the internet to your home/hackspace zone and you should never see any attempts to get from your home/hackspace or DMZ to your NoT or trusted zone. Where you do, it is immediately obvious there is something to be attended to.

Intrusion detection can be as simple as pass-wording your services and logging failed attempts to connect. Resulting in both a notification to yourself and or banning the offending IP for 20mins or so. You could also police or occasionally inspect your DMZ for unexpected network activity using a packet sniffer like wireshark.

Not wishing to get off topic, a wifi network controlling heliostats, measuring the environment and doing home automation etc is or should be, your Trusted NoT.

All the above sounds great, but we need to temper this with some realism. Absolute security leaves us with something potentially unusable and is hard work. No security......, well no surprises here eh... or there shouldn't be. There is a compromise to be made and this is a personal value decision.

Who are we securing our selves against?

If it is nation states and their alphabet agencies, there is no point, their access to law, resources and motivation is something that we can not do anything about. They can always use meat space, gain legal forced entry, and will, if all else fails. We may as well lube ourselves up in preparation and hope they use a condom. We all hope that the laws of the country we reside in, whilst far from perfect, give us some protection from this situation being abused.

Random vandalism, criminal intent and info hoarders though, should be what we spend some time defending against. This is something we can afford to tackle both in terms of cost and time.

Overall then being mindful of what we are securing ourselves against, establishing zones and controlling transfer between the zones should be how we look at it. Not transferring stuff between zones that we don't really need to, has to be an obvious first step. Sharing is useful and good, over-sharing is damn stupid.

We wouldn't stand in the main concourse of Meadowhell handing out brochures of what we posses so crims can nick it, we wouldn't hand out gratis copies of our house keys with the address attached, nor would we leave the house without locking it. We would not hand out a printed calendar of our where/when abouts so crims knew when we were in or out so they could target their activities to suit. Lastly we would not hand out handy lists of clues as to what our most likely password choices were going to be.

So why do we think it is OK to do this on the INTERNET,  "in the cloud", on social media, to anyone who asks via email ?? Is it any less public than the main concourse at Meadowhell?? Similarly why are we then surprised at the results. Intangibility does not make it any less real and the resultant risk/exposure via over-share any less damaging.

Personaly if I was inclined towards public over-share, I would do it in the main concourse of Meadowhell, in preference to doing it on the INTERNET. At least there would not be a permanent record of it, and I would have reached less of the worlds crims with each session.


Kirbs

andy

unread,
Mar 15, 2017, 9:00:21 AM3/15/17
to sheffield-har...@googlegroups.com



-------- Forwarded Message --------
Subject: Re: [SHH:6006] Sun-tracking mirrors controlled by Arduino?
Date: Tue, 14 Mar 2017 20:15:08 +0000
From: Graham Driver <graham...@hotmail.com>
To: Nick Smith <nickco...@googlemail.com>
CC: an...@kirbyand.co.uk <an...@kirbyand.co.uk>



I have used these switchers extensively with ESP8266, either down to 5V
or straight down to 3V3, in either case with the 1000/2200uF cap.


http://www.ebay.co.uk/itm/10pcs-Hot-Sale-MP1584-Adjustable-3A-DC-DC-Converter-Step-Down-Voltage-Regulator-/271863755380?hash=item3f4c57b274:g:cY0AAOSwBahVTIdC

<http://www.ebay.co.uk/itm/10pcs-Hot-Sale-MP1584-Adjustable-3A-DC-DC-Converter-Step-Down-Voltage-Regulator-/271863755380?hash=item3f4c57b274:g:cY0AAOSwBahVTIdC>

10pcs Hot Sale MP1584 Adjustable 3A DC-DC Converter Step Down Voltage
Regulator | eBay
<http://www.ebay.co.uk/itm/10pcs-Hot-Sale-MP1584-Adjustable-3A-DC-DC-Converter-Step-Down-Voltage-Regulator-/271863755380?hash=item3f4c57b274:g:cY0AAOSwBahVTIdC>
www.ebay.co.uk
Output current: 3A(Max). 10x DC-DC Converter Adjustable Module
replaceMP1584. DC-DC Adjustable Module. We will reply in 24 hours and
solve your problem in a friendly way. Canada Rate (item arrived) 0.0%
47. | eBay!




Switch bounce is mysterious but real. Can be fully cured by proper
hardware, or ameliorated by kiddy-hardware (an R and a C), and then
sorted in software.


Basically you assume that a switch is either mkade or not, and moves
smoothly between the two. In reality there is a period, and it might
several milli-seconds long where you really don't know what it is going
to be.


I guess Andy's article makes it sound like it's an encoder problem but
it is all switches.....


Graham
------------------------------------------------------------------------
*From:* 'Nick Smith' via Sheffield Hackspace
<sheffield-har...@googlegroups.com>
*Sent:* 14 March 2017 18:14
*To:* Sheffield Hackspace
*Cc:* nickco...@googlemail.com; an...@kirbyand.co.uk
*Subject:* Re: [SHH:6006] Sun-tracking mirrors controlled by Arduino?
--
You received this message because you are subscribed to the Google
Groups "Sheffield Hackspace" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to sheffield-hardware-...@googlegroups.com
<mailto:sheffield-hardware-...@googlegroups.com>.
To post to this group, send email to
sheffield-har...@googlegroups.com
<mailto:sheffield-har...@googlegroups.com>.

andy

unread,
Mar 15, 2017, 9:01:22 AM3/15/17
to sheffield-har...@googlegroups.com



-------- Forwarded Message --------
Subject: Re: [SHH:6000] Sun-tracking mirrors controlled by Arduino?
Date: Tue, 14 Mar 2017 17:03:58 +0000
From: Graham Driver <graham...@hotmail.com>
To: andy <an...@kirbyand.co.uk>



Hi


The on-board/external select on ESP8266-201 is by moving a zero-Ohm
0805. They comne set to on-board


Graham



------------------------------------------------------------------------
*From:* andy <an...@kirbyand.co.uk>
*Sent:* 14 March 2017 16:31
*To:* Graham Driver
*Subject:* Re: [SHH:6000] Sun-tracking mirrors controlled by Arduino?
<https://www.aliexpress.com/item/New-and-original-ESP8266-ESP-07-ESP-08-ESP-12/32639607414.html?spm=2114.01010208.3.17.d3DlaV&ws_ab_test=searchweb0_0,searchweb201602_2_10065_10130_10068_433_434_10136_10137_10138_10060_10062_10056_10055_10054_302_10059_10099_10103_10102_10096_10052_10053_10050_10107_10051_10106_10084_10083_10080_10082_10081_10110_10111_10112_10113_10114_130_10078_10079_10073_10070_10122_10123_10126_6000000_10124,searchweb201603_3,afswitch_1,ppcSwitch_5,single_sort_0_price_asc&btsid=b6a48686-e5de-4a10-8cc9-4f29cb485553&algo_expid=04052551-7946-4697-9510-bcff13eccd5c-1&algo_pvid=04052551-7946-4697-9510-bcff13eccd5c>

Free shipping ESP8266 serial WIFI module adapter plate Applies to ESP 07
ESP 08 ESP 12-in Integrated Circuits from Electronic Components &
Supplies on Aliexpress.com | Alibaba Group
<https://www.aliexpress.com/item/New-and-original-ESP8266-ESP-07-ESP-08-ESP-12/32639607414.html?spm=2114.01010208.3.17.d3DlaV&ws_ab_test=searchweb0_0,searchweb201602_2_10065_10130_10068_433_434_10136_10137_10138_10060_10062_10056_10055_10054_302_10059_10099_10103_10102_10096_10052_10053_10050_10107_10051_10106_10084_10083_10080_10082_10081_10110_10111_10112_10113_10114_130_10078_10079_10073_10070_10122_10123_10126_6000000_10124,searchweb201603_3,afswitch_1,ppcSwitch_5,single_sort_0_price_asc&btsid=b6a48686-e5de-4a10-8cc9-4f29cb485553&algo_expid=04052551-7946-4697-9510-bcff13eccd5c-1&algo_pvid=04052551-7946-4697-9510-bcff13eccd5c>
www.aliexpress.com
Cheap new scooter, Buy Quality new and used scooters directly from China
new k Suppliers: Free shipping ESP8266 serial WIFI module adapter plate
Applies to ESP-07 ESP-08 ESP-12




They have pads for a linear reg but I don't use them, if you get the
newer variant of the esp07 you can chop the top centimeter or so off the
breakout board as it is surplus and does nothing.

This is the newer variant of the esp8266-07 it has an s on the end and
no onboard antenna, plus 4M flash. Perfect for fitting inside a metal
case with an external antenna.

http://www.electrodragon.com/product/esp-07s-esp8266-serial-wifi-module/
<http://www.electrodragon.com/product/esp-07s-esp8266-serial-wifi-module/>

ESP-07S ESP8266 Serial to Wifi Module - ElectroDragon
<http://www.electrodragon.com/product/esp-07s-esp8266-serial-wifi-module/>
www.electrodragon.com
Electrogragon offers millions of electronic prototyping components
online! Most of our products comes directly from our factory suppliers
with a decent price, and we ...




http://www.esp8266.com/viewtopic.php?f=13&t=11677
Differences between ESP-07 and ESP-07S - Everything ESP8266
<http://www.esp8266.com/viewtopic.php?f=13&t=11677>
www.esp8266.com
- Wed Sep 07, 2016 3:17 pm #54650 Hi there, I wish to ask, what is the
difference between ESP-07 and ESP-07S modules (except there is no
ceramic antenna integrated ...




Shop around for best prices I just linked the first items that looked
like the ones I use.

I like the 201 though, saves messing about soldering onto the breakout
board. Do you have to disconnect the on board antenna or is it a clever
u.FL connector that does it for you ??


Kirbs







On 14/03/17 13:15, Graham Driver wrote:
> Hi
>
>
> I use some modules callled ESP8266-201 though I have seen that
> designation on things which look like 12E
>
>
>https://www.google.co.uk/search?q=ESP8266+201&tbm=isch&imgil=EDv10MzXiMqg9M%253A%253BfyyCXlnGq48OOM%253Bhttp%25253A%25252F%25252Fsmarpl.com%25252Fcontent%25252Fesp8266-esp-201-module-first-impressions&source=iu&pf=m&fir=EDv10MzXiMqg9M%253A%252CfyyCXlnGq48OOM%252C_&usg=__AQugrfaNi1JoduT-qKkRM6dYdOo%3D&biw=1920&bih=941&ved=0ahUKEwiAmIrOiNbSAhXkCcAKHa9FAz4QyjcIOA&ei=ievHWMCvHeSTgAavi43wAw#imgrc=EDv10MzXiMqg9M:
>
>
> Minor (well major) problem was that on 2 out of 4 boards the ULF
> connector was put in 180deg rotated and so shorted the input. Guess
> which two modules I was trying to use. Removing and refitting proved
> impossible so these boards now have pigtails soldered directly.
>
>
> Passwords are mentioned in my file, but be aware that if you set one you
> will not be able to upload to SPIFFS OTA, though that might have been
> cured by now.
>
>
> Several replies went to OP only, so some things I say now might seem a
> bit stage-left.
>
>
> Graham
>
>
>
>
>
> ------------------------------------------------------------------------
> *From:* sheffield-har...@googlegroups.com
> *Sent:* 14 March 2017 13:06
> *To:* sheffield-har...@googlegroups.com
> *Subject:* Re: [SHH:6000] Sun-tracking mirrors controlled by Arduino?
>
>
> I can't offer much help with the Wemos D1 minis as I have not used them.
>
> I think Graham, Rich L and maybe OJ have though, they are nice little
> breakout boards for the esp modules form what I saw of the one someone
> was using in the space.
>
> For esp's I usually use ESP07's with the cheap little plain break out
> PCB's (to get them to 0.1" pinout) and get the newer versions which have
> more flash on board. The 07's usually have a u.FL connector on board for
> an external antenna, for which you will need a pigtail and either make
> your own aerial or buy one.
>
> I like external aerials, and tend to dislike on board one's , although I
> do put up with the onboard ones sometimes for convenience.
>
>
> Kirbs
>
>
>
> On 14/03/17 12:51, 'Nick Smith' via Sheffield Hackspace wrote:
>> Just to include the power requirements of the EasyDriver boards: 50mA
>> in normal use (per board), 9mA in 'disabled' mode (chip active, but
>> power cut to motor), and 20uA in 'sleep' mode (chip sleeping). I'm not
>> sure if the +3.3V output from the EasyDriver board that I want to use
>> to drive the Wemos D1 mini is also cut in disabled/sleep mode. I'm
>> hoping not!
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Sheffield Hackspace" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to sheffield-hardware-...@googlegroups.com
>> <mailto:sheffield-hardware-...@googlegroups.com>.
>> To post to this group, send email to
>> sheffield-har...@googlegroups.com
>> <mailto:sheffield-har...@googlegroups.com>.
>> Visit this group at
>>https://groups.google.com/group/sheffield-hardware-hackers.
>> For more options, visithttps://groups.google.com/d/optout.
>
> --
>www.kirbyand.co.uk <http://www.kirbyand.co.uk>
> an...@kirbyand.co.uk

Nick Smith

unread,
Mar 19, 2017, 8:05:39 PM3/19/17
to Sheffield Hackspace
I've started a separate thread about the mechanical design, with video of a 3D model:
https://groups.google.com/forum/#!category-topic/sheffield-hardware-hackers/hackery/mechanics/GGhakzeGjh4

Nick Smith

unread,
Mar 24, 2017, 2:36:07 PM3/24/17
to Sheffield Hackspace, an...@kirbyand.co.uk
Just got 5 of them for £1.90 inc postage! :D Only took 10 days to arrive from China as well, which is impressive.

I guess if I really want to minimise the power draw, I'll have to somehow disable the LED ? every uA counts! ;)

Nick Smith

unread,
Apr 3, 2017, 11:32:17 AM4/3/17
to Sheffield Hackspace, an...@kirbyand.co.uk
For my prototype heliostat I'm programming my WeMos D1 mini ESP8266 over USB, because it has the built-in USB-to-serial h/w. But to save a couple of quid, I want to use a 'naked' ESP8266 on my finished heliostats.

I need a separate cheap USB-to-serial board to program those naked ESP8266's (at least once, then I can use OTA) but I'm not sure which to get? There seem hundreds around the 55p to £1.50 range on Aliexpress, but I don't want to get the wrong one. I know it needs 3.3V for talking to the ESP8266, not 5V from the USB, and one of FT232/CH340G/CP2102? I'll be powering the ESP8266 separately with a regulated 3.3V supply.

Many thanks

Andy Kirby

unread,
Apr 3, 2017, 5:44:13 PM4/3/17
to sheffield-har...@googlegroups.com

Any of the usb serial converter boards that allow you to jumper them to 3v3 should do.

5V will kill ESP's dead, in very short order non of their pins are 5V tolerant. Oddly enough mine seem to have survived reverse polarity a number of times but have never survived over voltage.

On the ESP units, something you need ot be aware of is that you need twice the flash fro your application when you use OTA. OTA downloads the next copy inot the other half then points the boat-loader at it. When you OTA again it over writes the first one then re points the boot-loader at it. This is how it does OTA. SOrt of sensible really.

If you have configured spiffs this is shared between the two run time images so there is only one of these.

So your flash needs to be sized to allow for 1* spiffs and 2 * runtime code.

As you are developing and don;t know yet if you are buying ahead get the most flash that fits your budget. Beware buying units with too little flash, better to have too much than too little.

As to which module pick one with enough io pins broken out and an aerial configuration that suits your application.

If you want lots of flash and to use an external antenna with no on board antenna (metal enclosure, longer range required for wifi) an 07S is the best bet.

Looks like this but is usually cheaper of aliexpress, may need to shop around, sometimes job lots (10 off including free postage etc)  can be cheaper.

http://www.electrodragon.com/product/esp-07s-esp8266-serial-wifi-module/

https://www.aliexpress.com/item/1-pcs-ESP8266-Serial-To-WIFI-Module-ESP-07S-Industrial-Grade-Wireless-Module-New/32714132575.html?spm=2114.01010208.3.128.ZyyRS9&ws_ab_test=searchweb0_0,searchweb201602_4_10065_10130_10068_10136_10137_10138_10060_10062_10141_10056_10055_10054_10059_10099_10103_10102_10096_10148_10052_10053_10050_10107_10142_10051_10143_10084_10083_10080_10082_10081_10110_10111_10112_10113_10114_130_10078_10079_10073_10070_10123_10124,searchweb201603_1,afswitch_1,ppcSwitch_5,single_sort_0_price_asc&btsid=0865dfd4-ff02-4239-b664-5ac6c24e30a9&algo_expid=fe8338ad-b3b7-4649-b81e-9432e14a2646-14&algo_pvid=fe8338ad-b3b7-4649-b81e-9432e14a2646

But if you want an onboard antenna then something like the ESP12-S is OK

http://www.electrodragon.com/product/esp-12s-wifi-module-esp8266/


The ESP8266 modules are all exactly the same chip the only difference between the types is how much external spi flash they have, how many gpio pins have been broken out and what the antenna options are. These are usually set by your project.

If you are buying a job lot in to get a good deal and have them around for later projects go for most spi flash and pins, with an antenna config that is flexible enough for the most likely range of your needs.

I usualy do this and use an external usb/serial converter, simply because I am too tight to leave one connected all the time when it is not needed. lol.


Hope this helps


Cheers Kirbs

--
You received this message because you are subscribed to the Google Groups "Sheffield Hackspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sheffield-hardware-...@googlegroups.com.
To post to this group, send email to sheffield-har...@googlegroups.com.
Visit this group at https://groups.google.com/group/sheffield-hardware-hackers.
For more options, visit https://groups.google.com/d/optout.

Richard Langner

unread,
Apr 4, 2017, 3:08:33 AM4/4/17
to Sheffield Hardware Hackers
I spotted this on AliExpress - D1 mini Pro1-6 with external (and internal) aerial.
Everything's there, so it may work out cheaper.

Richard



AVG logo

This email has been checked for viruses by AVG antivirus software.
www.avg.com


Nick Smith

unread,
Apr 4, 2017, 5:03:26 AM4/4/17
to sheffield-har...@googlegroups.com, an...@kirbyand.co.uk
Thanks, I've gone for the ESP-12F board with onboard antenna and 4MB flash. £1.46/ea inc. shipping! Oddly buying 5 individually was cheaper than a single lot of 5pcs.

Have you got a link to a specific usb serial converter board that can do 3v3? The cheap Chinese boards never seem to have any documentation, and I don't want to wait a month only for the wrong thing to arrive... Apparently quite a few of the boards can do 3v3 on the Vout, but still use 5v on the data pins? :(

Would this (CH340-based) one be OK? https://www.aliexpress.com/item/1pcs-USB-to-ESP8266-Serial-Wireless-Wifi-Module-Developent-Board-8266-Wifi-Module/32693314450.html

Cheers

Nick Smith

unread,
Apr 4, 2017, 5:08:42 AM4/4/17
to Sheffield Hackspace, richard...@gmail.com
Thanks Richard. For a single board that is great (and I'm using a D1 mini for my prototyping), but for multiple boards taking off circuitry like USB-to-serial, voltage regulator, etc. saves a bit of money, board space, and also a bit of electricity.

At this rate I might end up with a dozen ESP8266 all over my house and garden, doing various monitoring/logging/control jobs!

Andy Kirby

unread,
Apr 4, 2017, 5:35:51 AM4/4/17
to sheffield-har...@googlegroups.com

Yeah that is an occupational hazard for hackers. I think we all have a collection of these, including the space itself.

Kirbs

--
You received this message because you are subscribed to the Google Groups "Sheffield Hackspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sheffield-hardware-...@googlegroups.com.
To post to this group, send email to sheffield-har...@googlegroups.com.
Visit this group at https://groups.google.com/group/sheffield-hardware-hackers.
For more options, visit https://groups.google.com/d/optout.

Andy Kirby

unread,
Apr 4, 2017, 5:43:18 AM4/4/17
to sheffield-har...@googlegroups.com

If you are in a tearing great hurry, checkout pimoroni's serial adapter cable for the raspberry pi console.

It is definitely 3v3, I don't think the Pi's pins are very 5v tolerant.

Failing that check out ebay for UK dispatched usb serial converters.

FTDI whether real or clone are pretty much mostly 3V3 these days.

These sorts of boards that can be jumpered and breakout all the ftdi pins are useful, They can often be re-purposed for jtag dependingon the implementation.

http://www.ebay.co.uk/itm/FTDI-FT232RL-USB-to-TTL-Serial-Converter-Adapter-Module-5V-3-3V-For-Arduino-DG-/142267125021?hash=item211fc80d1d:g:CWoAAOSw44BYHZPV


Kirbs





On 04/04/17 10:03, 'Nick Smith' via Sheffield Hackspace wrote:
Thanks, I've gone for the ESP-12F board with onboard antenna and 4MB flash. £1.46/ea inc. shipping! Oddly buying 5 individually was cheaper than a single lot of 5pcs.

Have you got a link to a specific usb serial converter board that can do 3v3? The cheap Chinese boards never seem to have any documentation, and I don't want to wait a month only for the wrong thing to arrive... Apparently quite a few of the boards can do 3v3 on the Vout, but still use 5v on the data pins? :(

Cheers
--
You received this message because you are subscribed to the Google Groups "Sheffield Hackspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sheffield-hardware-...@googlegroups.com.
To post to this group, send email to sheffield-har...@googlegroups.com.
Visit this group at https://groups.google.com/group/sheffield-hardware-hackers.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages