Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
probonopd
@probonopd
does anyone have mosquitto running with esp and TLS?
i end in a reboot loop
Helio Machado
@0x2b3bfa0
@/all Anybody knows if exists any small, commercial and affordable transformerless solution to power up my ESP from mains. I've seen some circuits based on LNK306, but I can't find (even on Ali) a board with the chip mounted. Only the chips.
Me No Dev
@me-no-dev
@crushedice2000 let me know if you find anything ;) i'm also interested in such thing. Most found are either too noisy or too big
don't know if this fits your "transformerless" solution though, but I don't know how you'd get from 230VAC down to 3.3VDC without some sort of transformer :)
Me No Dev
@me-no-dev
there are ways. issues come with current :)
it's really easy to get 30mA, but that is not going to feed the esp
Me No Dev
@me-no-dev
@AdySan I have that thing and it's not that small :) you can fit small transformer and bridge inside
Aditya Tannu
@AdySan
@me-no-dev haha, thanks for the heads up, has been in my cart for a few weeks now. but yeah, cheap iPhone chargers ~$1 are the best/smallest power supply for projects.
I tried to open a smart 433MHz socket but the capacitive PS was extremely wimpy.
Me No Dev
@me-no-dev
those 433MHz "smart" things use verry little electricity to receive data and they on their own are sooo unpredictable
i send perfect signal to those 3-4 times to be sure they heard me
Aditya Tannu
@AdySan
yeah, the transmitters ususally keep repeating the binary pattern as long as you press the button
Me No Dev
@me-no-dev
try swithching 10 at the same time
probonopd
@probonopd
@AdySan and an usafe option, these $1 chargers...
unsafe
@me-no-dev @Makuna could we use something like Protothreads http://dunkels.com/adam/pt/ for fades and animations?
I have a sketch that does MQTT, OTA and Neopixels now.
But adding animation to it is not easy
so I wonder whether something like Protothreads could help to make it easier
e.g., instead of strip.SetPixelColor(0, blue); I would like to strip.FadePixelColor(0,1000,blue);
without adding someting to loop() that I need to take care of/that interferes with OTA, MQTT and other stuff
Me No Dev
@me-no-dev
ideally OTA and MQTT should run async and your pixels in the loop
then you would not have that problem
OTA needs attention after successful handshake with the computer
and that has tomeout of around 10-20 seconds
do not worry much about OTA
maybe if Espressif gets RTOS for ESP at the same level as NON_OS (this) we will move over and forget about issues like this one
Aditya Tannu
@AdySan
hi all, would it be possible to make a SSH client using the arduino core, basically I want to make a dash-button like device, which will ssh into a certain computer and run something. Any other approaches are welcome too, as long as I can run a root level command at the terminal
Markus
@Links2004
@AdySan there is no SSH lib for Arduino, can you run a program on the computer?
Aditya Tannu
@AdySan
@Links2004 yes, basically I want a remote reboot button for my RPi, I can run any sort of host on the RPi side
Markus
@Links2004
ok simple start a https webserver that runs a script that exec your command by sudo.
but think about how to secure (only allow the ESP to run stuff)
Me No Dev
@me-no-dev
@AdySan you can write your own server for the Pi the same way you write for the ESP
99% the same code
I know you've seen the repository :)
Aditya Tannu
@AdySan
interesting, was planning to have a remote display using VNC library made by @Links2004 but in case the RPi freezes or the VNC server is not up for some reason, it would be nice to have a backup option which can reboot or start the vnc server
Markus
@Links2004

without security:
run apache + php on the pi.

<?php
exec($_POST);

use HTTP client to send a POST with the command.
if it always the same you can hardcode it.

<?php
exec("sudo reboot");
Aditya Tannu
@AdySan
@me-no-dev oh the RPi/Arduino, yes I did :smile:
Me No Dev
@me-no-dev
I have fully integrated the Bridge lirary API so you can do just about anything
even control what's going on on the HDMI screen
you can hack custom server to talk to the esp and execute whatever easily ;)
Aditya Tannu
@AdySan
will take a dab at it, thanks!
Helio Machado
@0x2b3bfa0
@celsworth @me-no-dev @AdySan @Links2004 : http://www.ebay.co.uk/itm/171794933876?_trksid=p2060353.m2749.l2648&ssPageName=STRK%3AMEBIDX%3AIT is the biggest thing I ever met, http://www.aliexpress.com/item/Free-Shippingn-HLK-PM01-AC-DC-220V-to-5V-mini-power-supply-module-intelligent-household-switch/32319515750.html?spm=2114.13010208.99999999.282.Fp5N2o seems big to me (I've seen it on Ali the past week, thanks however). I'm searching for a power supply like this one: http://forum.mysensors.org/uploads/upload-647e8ae2-ac42-4195-8031-3d77c92bbb71.jpg from this forum
Sorry for the late reply, I was offline
Helio Machado
@0x2b3bfa0
@martinayotte @Links2004: These are my current emergency solutions (waiting for), however I expect to find anything smaller (like that one in the picture). That circuit is based on LNK306, however I couldn't find that circuit already mounted. I ordered 10 chips of that on Ali to DIM (do it myself).
Michael Miller
@Makuna
@probonopd my library support async animations, but does require rethinking on your part on how they work. This is topic best brought up on my Gitter group. But look at the NeoPixelAnimator class. You can provide the function that does the specific update of the pixel and it will be called periodically with a progress that you use to define the animation.