My new gateway with leds for state and the only node I have: A wireless arcade button controller
Best posts made by Danielo Rodríguez
-
RE: What did you build today (Pictures) ?
-
RE: Which pins should I use for status led on a wemos d1 mini gateway
At the end I was able to use D0,D1 and D4 for status leds. Something interesting is that I can use the actual
DN
nomenclature because there is a header file that maps them properly. The weird thing is that such file is arduino.h (I'm using platformio) so I'm not sure if it is specific for the D1 mini or if D1 is compatible with arduino pinout.
I used a 220 ohm resistor and, dam it, the leds are bright as hell, haha.
Everything is working now, it's very pleasant to see the leds blink when I turn on other node. Thanks to all the people on this forum for the great support. -
RE: Sensor presentation failure
@yveaux thanks for that piece of information!!
This was driving me crazy. I know this is an old thread, but this is still a problem today.
I think this should be added to the documentation and probably add one example with this setup properly working. -
RE: Can a gateway talk to itself?
Wow, that is very nice @mfalkvidd
So I can override the indication function and it will be called on the same events that are now handled automatically right? So if I define this function I have to handle all the enum options right?
Thanks -
RE: Node not working after adding some wires and a capacitor
@mfalkvidd thanks again.
@mfalkvidd said in Node not working after adding some wires and a capacitor:
I see that the nrf24 on your gateway is the variant with the "blob" instead of a chip. If the radio is in a socket, try replacing it with one that has the chip.
I have several of both, I'll try to put one of the "good ones" on the gateway to see if that makes a difference.
@mfalkvidd said in Node not working after adding some wires and a capacitor:
The antenna on the gateway is pretty close to the metal in the protoboard. Some extra distance could be good, at least to check if the protoboard is messing with the signal.
The picture is taken from above, and seems the antena is quite close to the board, but in realyti it is not that bad. I'm posting here another image to show how far it is from the bottom. Also you can see that there is a capacitor attached (same values as the node)
What disturbs me the most is that it worked for an entire week, then just some nodes and now anything works. This is kinda crazy...
Thanks for your help, I'll try with your suggestion of changing the radio
-
RE: Node not working after adding some wires and a capacitor
@kimot said in Node not working after adding some wires and a capacitor:
Your NRF is 2.4GHz. Your Wemos and home WiFi network is 2.4GHz too.
Maybe your WiFi router randomly switch wifi channels to the chanel of your NRF network.
Try set fixed channel on your router.That is a good and smart advice, however:
- My router is already set to fixed channel 11
- My router is on my bottom floor while I'm doing my tests on my first floor. Maybe the interferences are not that bad? Probably I just said a stupid thing
- I have the following on my nodes and gateway:
#define MY_RF24_CHANNEL 80
and since 80 is not even an available channel on wifi (not at least on my router) it should be fine even if it were not fixed
But I appreciate that you pointed it out.
Now I have good news that doesn't feel good. I did what @mfalkvidd suggested and I swapped the radio on the gateway with a version without the blob on the chip. After that everything has been working flawlessly. All my test nodes work without any problem, the ones using good radios and the ones using the radio with the blob. They all work, not a single drop. Sometimes if I touch the radio with my hands, I can see a error appearing
!TSF:MSG:LEN=8,EXP=7
but does't seem to affect the operative of the module.
Why does this feel bad? Because I was on a similar situation a week ago, where everything was working perfectly for an entire week and then everything started to fail so, how do I know this is not going to fail in a week? I can'tNow I have to experiment without fixed IDs. I never got it working using automatic IDs and I can't understand why. At first I thought it was because I didn't had a "join mode button", but seems that such button has a totally different usage. If somebody could explain me how that button is supposed to work and if it is required for dynamic IDs to be assigned I will be also very grateful.
Regards.
-
Which pins should I use for status led on a wemos d1 mini gateway
Hello,
Sorry if this has been answered before, but I could not find any answer to this particular thing.
I have a wifi gateway built using a d1 mini. It is working great, but I want to have some feedback about what is going on, so I decided to add some status leds. I already wired all the leds to 5v, and when I was about to check wich other pins to use I realized that the information is for an arduino gateway, so, what are the pins that ai can use on the D1 mini for this?