The Rig

Moderators: rtenklooster, Voyager, BertB, Stuntteam

Forum rules
You have entered the experimental forum, beware!!!
Post Reply
Message
Author
User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: The Rig

#11 Post by grovkillen » 29 May 2017, 21:23

Martinus, I'd love to get some behind the scene story of how it began and what not. I would like to have a history section in the wiki :)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: The Rig

#12 Post by psy0rz » 29 May 2017, 22:40

Martinus that looks awesome! It pure art. :)

Regarding donations: Might be a good idea. But there are multiple people involved. For example Remco is paying/sponsoring/hosting our forum , wiki and other stuff.

So i cant just decide this. Ill discuss it with remco and martinus to figure out how to do this.
Please support ESPEasy development via Patreon or buy us a coffee.

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: The Rig

#13 Post by LisaM » 30 May 2017, 11:01

Martinus wrote: 29 May 2017, 20:41 Testrigs are essential for a developer. Had one before, but looked like this :oops:

Testlab.jpg

And that was only half of it, forgot to make a picture of the NodeMCU testbed... (looked a bit better but not much, considering all the jump wires)
All sensors where attached at multiple units, but back in those days we did not have that many sensors yet...
:shock:
Chaos reigns! If you want to bring ESPEasy to the next level, this won't do... ;)

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: The Rig

#14 Post by psy0rz » 31 May 2017, 23:34

I started working on the rig: First i'm building scripts to do things like compiling/erasing flash/flashing/wifi setup/serial connections.

I will try to make scripts reusable and build a clean modular rig.

Eventually the scripts are able to do everything automaticly on as many ESP's as we have. So, also things like configuring via http.

Anyway, i already found a bug: erasing the flash and reflashing it with espeasy will not correctly restart the unit after factory formatting. I'll fix that first. (a manual reset will fix it but i its annoying and confusing)

By scripting everything we get a regression test and i'm able to detect and reproduce these kinds of errors more easy.
Please support ESPEasy development via Patreon or buy us a coffee.

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: The Rig

#15 Post by psy0rz » 19 Jan 2018, 18:00

Domosapiens wrote: 29 May 2017, 01:01 psy0rz,
Because I might get a financial grant to support ESPEasy (more on this later)
I like to donate too.
Is there somewhere a Donate button like Domoticz has?
http://www.domoticz.com/downloads/

psy0rz & Dev. team.
Thanks for all the time spent and the great result.

Domosapiens
Well you can now, i have a patreon: https://www.patreon.com/psy0rz :)

$1 each month would already be very nice.
Please support ESPEasy development via Patreon or buy us a coffee.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: The Rig

#16 Post by grovkillen » 19 Jan 2018, 18:16

psy0rz wrote: 19 Jan 2018, 18:00
Domosapiens wrote: 29 May 2017, 01:01 psy0rz,
Because I might get a financial grant to support ESPEasy (more on this later)
I like to donate too.
Is there somewhere a Donate button like Domoticz has?
http://www.domoticz.com/downloads/

psy0rz & Dev. team.
Thanks for all the time spent and the great result.

Domosapiens
Well you can now, i have a patreon: https://www.patreon.com/psy0rz :)

$1 each month would already be very nice.
Yay!
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Domosapiens
Normal user
Posts: 307
Joined: 06 Nov 2016, 13:45

Re: The Rig

#17 Post by Domosapiens » 19 Jan 2018, 19:48

I like to reward the team for all their work, but ..
Sorry, this is too complicated and too much waste.
- PayPal redirection does not work
- 21% VAT goes to ???
Please open just a PayPal account for gifts.
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: The Rig

#18 Post by grovkillen » 20 Jan 2018, 08:33

Domosapiens wrote: 19 Jan 2018, 19:48 I like to reward the team for all their work, but ..
Sorry, this is too complicated and too much waste.
- PayPal redirection does not work
- 21% VAT goes to ???
Please open just a PayPal account for gifts.
Where did you find the Vat info? Opening a PayPal account for gifts is a good idea as well. But I like Patreon so no need to scratch that.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: The Rig

#19 Post by LisaM » 20 Jan 2018, 15:25

The uPyEasy testrig components are starting to arrive:
esp32 testboard.jpg
esp32 testboard.jpg (421.44 KiB) Viewed 39993 times
For the ESP32
ESP-12F testboard.jpg
ESP-12F testboard.jpg (413.7 KiB) Viewed 39993 times
For the ESP-12F

On these boards i'll place the most common sensors to test protocols, like the ds18b20 for onewire, bme280 for i2c, microswitch for switch, neopixel for gpio and a SD card for SPI. All of the boards are placed in plastic boxes and use usb which are attached to an usb-hub, while the usb-hub is attached to unix build platform. Stacked, organized and neatly stored, just like a rig should be!

The only gift i accept is your time. ;)

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: The Rig

#20 Post by grovkillen » 20 Jan 2018, 16:55

Wow Lisa. Great boards. Made them yourself?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: The Rig

#21 Post by LisaM » 20 Jan 2018, 18:17

grovkillen wrote: 20 Jan 2018, 16:55 Wow Lisa. Great boards. Made them yourself?
Ali made them for me... :D https://www.aliexpress.com/item/7x9CM-7 ... 46336.html

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: The Rig

#22 Post by TD-er » 20 Jan 2018, 20:12

LisaM wrote: 20 Jan 2018, 18:17
grovkillen wrote: 20 Jan 2018, 16:55 Wow Lisa. Great boards. Made them yourself?
Ali made them for me... :D https://www.aliexpress.com/item/7x9CM-7 ... 46336.html
Ohhh nice!!!!

If only they would fit in the 70x50 el-cheapo cases, then it would be perfect.

Edit:

Strike that.... they exist :)
https://www.aliexpress.com/item/5x7CM-5 ... 262.FxlnfN

How do you power these? What power regulator do you use?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: The Rig

#23 Post by grovkillen » 20 Jan 2018, 21:18

LisaM wrote: 20 Jan 2018, 18:17
grovkillen wrote: 20 Jan 2018, 16:55 Wow Lisa. Great boards. Made them yourself?
Ali made them for me... :D https://www.aliexpress.com/item/7x9CM-7 ... 46336.html
Thank you! I've been looking for something like that. Ordered 10 straight up :mrgreen:
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: The Rig

#24 Post by LisaM » 20 Jan 2018, 21:21

TD-er wrote: 20 Jan 2018, 20:12 If only they would fit in the 70x50 el-cheapo cases, then it would be perfect.

Edit:

Strike that.... they exist :)
https://www.aliexpress.com/item/5x7CM-5 ... 262.FxlnfN

How do you power these? What power regulator do you use?
I've these 5x7 boards also, i use them for experimenting.

Bigger board:
Regulator 5v: https://www.aliexpress.com/item/5pcs-22 ... 35430.html with 3.3v step-down: https://www.aliexpress.com/item/1-pcs-2 ... 12156.html

Smaller board:
dual 5v/3.3v power supply: https://www.aliexpress.com/item/220V-to ... 49666.html (Edited: See remarks below!)

TTL-Serial converter: https://www.aliexpress.com/item/Free-Sh ... 32750.html
Last edited by LisaM on 21 Jan 2018, 15:49, edited 1 time in total.

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: The Rig

#25 Post by psy0rz » 21 Jan 2018, 04:41

Domosapiens wrote: 19 Jan 2018, 19:48 I like to reward the team for all their work, but ..
Sorry, this is too complicated and too much waste.
- PayPal redirection does not work
- 21% VAT goes to ???
Please open just a PayPal account for gifts.
Done: https://www.paypal.me/psy0rz

I also have around 10 types of cryptowallets, so that would be possible as well. :)
Please support ESPEasy development via Patreon or buy us a coffee.

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: The Rig

#26 Post by psy0rz » 21 Jan 2018, 04:59

LisaM wrote: 20 Jan 2018, 15:25 The uPyEasy testrig components are starting to arrive:

esp32 testboard.jpg
For the ESP32

ESP-12F testboard.jpg
For the ESP-12F

On these boards i'll place the most common sensors to test protocols, like the ds18b20 for onewire, bme280 for i2c, microswitch for switch, neopixel for gpio and a SD card for SPI. All of the boards are placed in plastic boxes and use usb which are attached to an usb-hub, while the usb-hub is attached to unix build platform. Stacked, organized and neatly stored, just like a rig should be!

The only gift i accept is your time. ;)
Looks nice!

Did you start building on an automated testsuite? Perhaps some files i'm working on might be usefull, some are pretty generic:

Low level stuff: Handles things like communication via serial, reboot via DTR lines, build, flash, wifi config, serial/wifi pinging, post data via http etc: https://github.com/letscontrolit/ESPEas ... st/node.py This needs a PATH environment variable to the platformio command.

Controller emulation: https://github.com/letscontrolit/ESPEas ... lleremu.py This starts some threads to handle HTTP requests, line based protocols and MQTT (via a broker). Currently it "emulates" domoticz http/mqtt, so I can verify if a sensor transmits the correct data. Will add the other controllers soon.

All the actual tests are in the testXXX files, created in such a way I can easily copy/paste them for new tests. HTTP post-data can be just copypasted from a Chromium network tab to a http_post() call.

To run a test, just start the specific file. I will add a wrapper later to run all tests in sequence. Maybe later automaticly against every every new commit?

espcli is a console interface to call stuff from node.py and others. I often use "./espcli node 0 bfs" to build/flash and open a serial console.

I didnt had the time to look into uPyEasy yet (sounds great, much better than trying to debug C ;), but would it be feasible to work on a test framework together?

Perhaps generalize some parts a bit more so that we both can make our own seperate tests for espeasy and upyeasy? (in a seperate test-repository) I already send you an invite to the ESPEasy slack channel a while ago, if you didt receive it let me know.

Edwin
Please support ESPEasy development via Patreon or buy us a coffee.

Domosapiens
Normal user
Posts: 307
Joined: 06 Nov 2016, 13:45

Re: The Rig

#27 Post by Domosapiens » 21 Jan 2018, 09:56

30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: The Rig

#28 Post by papperone » 21 Jan 2018, 10:04

LisaM wrote: 20 Jan 2018, 21:21 Smaller board:
dual 5v/3.3v power supply: https://www.aliexpress.com/item/220V-to ... 49666.html
I never ordered such small PS as I though 200mA is not enough to run an ESP8266 in a stable way (even worse with ESP32 I guess).
Do you confirm they are able to run stable as much as the HiLink you linked above? (which I use 99% of the times as proven very very reliable)?
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: The Rig

#29 Post by LisaM » 21 Jan 2018, 15:48

papperone wrote: 21 Jan 2018, 10:04
LisaM wrote: 20 Jan 2018, 21:21 Smaller board:
dual 5v/3.3v power supply: https://www.aliexpress.com/item/220V-to ... 49666.html
I never ordered such small PS as I though 200mA is not enough to run an ESP8266 in a stable way (even worse with ESP32 I guess).
Do you confirm they are able to run stable as much as the HiLink you linked above? (which I use 99% of the times as proven very very reliable)?
For a single ESP8266/ESP32 chip (like ESP-01, or ESP32 with BT off) it's enough (barely): http://bbs.esp32.com/viewtopic.php?t=2662 / http://bbs.espressif.com/viewtopic.php?t=133, anything else it's:
HLK 3.3V https://www.aliexpress.com/item/HLK-PM0 ... 95801.html + Step Up 3.3V to 5Vhttps://www.aliexpress.com/item/8PCS-1- ... 942507.htm
or... HLK 5v + Step down to 3.3V (when using CO2 IR sensors for example since they eat a lot of 5V power, up to 150ma!)
If you want to be on the safe side, just buy/use the HLK since that always works and don't cost that much more like you already said.

I have everything and use a different combination for each project...

Ps. i'll do a duration test on my scope, just don't know when i'll have time for that.
Last edited by LisaM on 21 Jan 2018, 15:59, edited 3 times in total.

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: The Rig

#30 Post by LisaM » 21 Jan 2018, 15:53

psy0rz wrote: 21 Jan 2018, 04:59 Looks nice!

Did you start building on an automated testsuite? Perhaps some files i'm working on might be usefull, some are pretty generic:

Low level stuff: Handles things like communication via serial, reboot via DTR lines, build, flash, wifi config, serial/wifi pinging, post data via http etc: https://github.com/letscontrolit/ESPEas ... st/node.py This needs a PATH environment variable to the platformio command.

Controller emulation: https://github.com/letscontrolit/ESPEas ... lleremu.py This starts some threads to handle HTTP requests, line based protocols and MQTT (via a broker). Currently it "emulates" domoticz http/mqtt, so I can verify if a sensor transmits the correct data. Will add the other controllers soon.

All the actual tests are in the testXXX files, created in such a way I can easily copy/paste them for new tests. HTTP post-data can be just copypasted from a Chromium network tab to a http_post() call.

To run a test, just start the specific file. I will add a wrapper later to run all tests in sequence. Maybe later automaticly against every every new commit?

espcli is a console interface to call stuff from node.py and others. I often use "./espcli node 0 bfs" to build/flash and open a serial console.

I didnt had the time to look into uPyEasy yet (sounds great, much better than trying to debug C ;), but would it be feasible to work on a test framework together?

Perhaps generalize some parts a bit more so that we both can make our own seperate tests for espeasy and upyeasy? (in a seperate test-repository) I already send you an invite to the ESPEasy slack channel a while ago, if you didt receive it let me know.

Edwin
I haven't decided on any (software) framework for uPyEasy so far, i welcome all suggestions! So far i only ordered the hardware, since it takes a few weeks to arrive (pcb's did arrive, like most sensors). Now i have almost all components, need to find time to put everything together (and continue to work on uPyEasy, and finished my other project, and work so i get paid, and .... ;) )

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: The Rig

#31 Post by psy0rz » 21 Jan 2018, 17:16

I looked around abit for standard testsoftware, but then i decided to build something myself.

Most standard unit testing is made to test libraries and functions on the native system. We want to actually build and flash firmware and then http post and receive sensor data, while emulating actual controllers. There might be something that can do it, but as usual with python: its easier and quicker to implement something ourself for this specific usecase. :)

In case you find an existing framework that doesnt have a huge learning case and is better then what I have right know, let me know. For now this works and i'm actually starting to benefit from it.
Please support ESPEasy development via Patreon or buy us a coffee.

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: The Rig

#32 Post by LisaM » 22 Jan 2018, 22:34

LisaM wrote: 20 Jan 2018, 18:17
grovkillen wrote: 20 Jan 2018, 16:55 Wow Lisa. Great boards. Made them yourself?
Ali made them for me... :D https://www.aliexpress.com/item/7x9CM-7 ... 46336.html
:oops: :oops: :oops:
I screwed up the first board, just couldn't get the esp32 onto the board without bridging two or more pins. For now i gave up on it.
Ok, i have to rethink/find out how to solder the esp32/esp8266 onto such a board...

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: The Rig

#33 Post by toffel969 » 23 Jan 2018, 00:10

LisaM wrote: 22 Jan 2018, 22:34
LisaM wrote: 20 Jan 2018, 18:17
grovkillen wrote: 20 Jan 2018, 16:55 Wow Lisa. Great boards. Made them yourself?
Ali made them for me... :D https://www.aliexpress.com/item/7x9CM-7 ... 46336.html
:oops: :oops: :oops:
I screwed up the first board, just couldn't get the esp32 onto the board without bridging two or more pins. For now i gave up on it.
Ok, i have to rethink/find out how to solder the esp32/esp8266 onto such a board...
Sorry to hear that... hot air gun + soldering paste should do the trick, essentially smd soldering.

https://www.ebay.de/i/282663336169?chn=ps
that one works for me
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: The Rig

#34 Post by grovkillen » 23 Jan 2018, 06:22

LisaM wrote: 22 Jan 2018, 22:34
LisaM wrote: 20 Jan 2018, 18:17
grovkillen wrote: 20 Jan 2018, 16:55 Wow Lisa. Great boards. Made them yourself?
Ali made them for me... :D https://www.aliexpress.com/item/7x9CM-7 ... 46336.html
:oops: :oops: :oops:
I screwed up the first board, just couldn't get the esp32 onto the board without bridging two or more pins. For now i gave up on it.
Ok, i have to rethink/find out how to solder the esp32/esp8266 onto such a board...
I ordered a bunch. Hopefully I get more lucky.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests