A family member gave me an old lamp with a fancy glass base. Well, I didn't like the lamp, but the base was nice, so I kept it in my basement for a few years. I found it again the other day and decided it needed to become a new type of lamp. I put a 150 LED strip (WS2812B) inside. I have an STM32 Blue Bill and RFM69HCW to run the light patterns and connect to MySensors.
In Domoticz, I have it set up as a dimmer light, but the node just switches patterns depending on what the dimmer level is.
At first, I wrapped the LED strip carefully around a tube that sits in the center of the glass jar, but it didn't look very good. Somehow just spiraling the strip in the bottom of the lamp has a much better effect.
My wife even liked it, so maybe I will put some finishing touches on it and actually use it as a lamp : )
nagelc
@nagelc
Mechanical engineer for a living, but I love these sensors, processors, radios, and programming, for fun.
Some people meditate . . . I prefer to solder.
Best posts made by nagelc
-
RE: What did you build today (Pictures) ?
-
RE: What did you build today (Pictures) ?
@berkseo
Hey. Our own berkseo is on Hackaday. Congrats!https://hackaday.com/2021/03/11/nrf52-weather-station-gives-forecast-with-style/
-
RE: What did you build today (Pictures) ?
I've been playing with an Adafruit AudioFX board and cobbled together this annunciator. Eventually it will be a MySensors node to play alarms or other sounds. It is using a cheap portable speaker to play the sounds. I got it to work with my doorbell button node today.
-
RE: STM32?
Just got a blue-pill, RFM69 node working. It was a bit of a learning curve moving from Atmega.
- Cheap J-Link: Never got it working. Cheap ST-Link: Worked
- Arduino (and VisualMicro) uploaded blink sketch with ST-Link: no problems
- Uploaded the USB bootloader using the ST-Link: no problems
- Took a while to figure out I didn't have the dfu driver loaded (Windows 10), but after that no problems using the usb
- MySensors security personalizer: no problems.
- Mock MySensors node: no problems. Talked to my gateway. Uses RFM69 encryption.
Seems like this is the Nano of the future, but without needing to level shift for 3.3V. I'm looking forward to making some real blue pill nodes and gateways.
-
RE: What did you build today (Pictures) ?
BT832 Thin Node prototype. Inspired by https://forum.mysensors.org/topic/2067/my-slim-2aa-battery-node and @neverdie nrf5 and am612 research. I noticed the BT832 is about the same width as a AA battery holder. I'm using one AA LiFePo4. This is my first sensor with nrf5, bme280, and am612. I also incorporated a jst-sh 6 pin connector for programming. It includes swd, power, and text. All sensors are working. It did not turn out to be very thin. Need to try some smaller PIR lenses and rearrange components for the next iteration.
-
RE: What did you build today (Pictures) ?
I am testing a node with a DigiPyro, PYD 1598 motion detector. It is advertised to be low power and runs from 1.8 to 3.6 volts, so should run well with a coin cell. They have to be programmed with several options and I have not found a lot of documentation. I went with what seemed like the most sensitive choices and it seems to work so far. More research needed . ...
https://www.excelitas.com/product/pyd-1588-pyd-1598-low-power-digipyrosI bought a couple of these from DigiKey for around $4 each. Now they are more than $12 each and there is no stock. So, these may not be as good a choice as they seemed at first. We'll see . ...
-
RE: Electrodragon NRF Pro Mini Sensor Board
@mfalkvidd Thanks for doing this kind of work (deleting fake users and stopping spam). I am sure it is not as much fun as answering real questions about MySensors topics. But I learn so much from people in these forums, that I would hate to see it overtaken by trolls and spam.
-
RE: Something's cooking in the MySensors labs...
@Yveaux
Another experiment, using 2mm machined pins and sockets. Since the RFM69HCW and the RFM95's share the same pinout, I could switch radios easily for testing. -
RE: RFM69 radio 915Mhz
Unlike the NRF24, the RFM69 is not 5V tolerant on the data pins. The Uno and Nano both have 5V data pins. The NRF24 can work with them as long as it has the 3.3V supply. Unfortunately, the RFM69 needs the data pins to be 3.3V also.
I have used the RFM69 915Mhz successfully with a 3.3V ProMini (all pins 3.3V). To use with the Uno or Nano, you would need to power from the 3.3V supply and use a 5V to 3.3V level shifter on the NSS, MOSI, and SCK data pins. -
RE: What did you build today (Pictures) ?
I finally got a BT832 (NRF52832 from Fanstel) to talk to my NRF24 gateway. I got the NFR5s a while ago. Made a quick breakout board (quick to design, but slow delivery). In the mean time, I configured a STM32 "Blue Pill" as a Blackmagic Probe to program it. I had to get the latest Sandeep Mistry NRF5 files from github in order for it to support the blackmagic probe, but . . . it worked : ) So far I have just run the MockMySensors and it shows up on Domoticz.
Latest posts made by nagelc
-
RE: Getting system time from the controller
I have found that controllers can be very slow to respond to time requests. Same experience for Domoticz and for Homeassistant. Try a wait(1500) after the time request.
-
RE: Compiling Sensor code using BME280 and ESP8266
I didn't see anything obviously wrong, so I tried compiling your code. Your code compiled fine for me. I used ESP8266 Boards (2.5.0-Beta3) -> Generic ESP8266 Module.
Unfortunately, that doesn't help much with figuring out why your compiler is giving the error. -
RE: Adding Listen only device to my system.
This is only a partial answer.
You have to implement a function on the node to receive the data: void receive(const MyMessage &message)
Go to this page https://www.mysensors.org/download/sensor_api_20 and scroll down to "Handling incoming radio messages".
I'm pretty sure I have seen someone on this site doing exactly what you are looking for, but I didn't find it when I looked. They had a node with an LCD display they could send text to.
Hope this gets you started : ) -
RE: Nb of possible nodes in a mysensors networks with domoticz
Another thing to check if you updated MySensors after a long time. The update overwrites the MyConfig.h file. If you had any custom settings in that file, you have to go back and reset them. This used to get me because I use 915Mhz with the RFM69 radios. Updates would change it back to the default, and I would have to go change it back.
-
RE: Wio-E5 (STM32 and SX1262)
Quick Range Check on the WIO-E5-LE. The LE version uses only the low power PA, +14dBm max. Using the default settings except for 915MHz
#define MY_SX126x_FREQUENCY (SX126x_915MHZ) #define MY_SX126x_LORA_SF LORA_SF7 #define MY_SX126x_LORA_BW LORA_BW_125 #define MY_SX126x_LORA_CR LORA_CR_4_5
I get about 190 meter range, just walking around the neighborhood, line of site except for some trees and power lines.
No tuning on the antenna. Just using a 77.9mm wire.
Not as dramatic as some have achieved with LoRa radio's, but plenty good enough for my house and yard : ) -
RE: Running out of nodeId's
@GLAB You can set the frequencies using the settings in MyConfig.h, which is in the MySensors folder. If you put any of the defines from MyConfig.h into your sketch, they will override the MyConfig.h setting for that sketch only.
If you are using the RF24 radio, there are different channels which correspond to a given frequency. The default is channel 76. There is a list of typical channels in MyConfig.h. If you want to change the channel for all the sketches, change it in MyConfig.h. If you want to change it just for the sketch, add a define to the sketch. For example:#define MY_RF24_CHANNEL (84)
The problem with changing the channel in a sketch is that the gateway has to be on the same channel to receive from the node. So, normally it makes sense to change in MyConfig.h because you usually want the gateway and all the nodes on the same channel.
Other radio's like the RFM69 list the frequency instead of using a channel. They can be overridden in the sketch as well. You can find the defines that are needed in MyConfig.h
-
RE: Sensor to detect marijuana vape/smoke
Sounds like a challenging problem. Maybe an air quality sensor would help? I don't know if pot smoke would trigger one of those at the levels you are concerned about. The BME680 is supposed to be a good sensor for air quality. I haven't used it, and some others on this site have not been that impressed. See this thread: https://forum.mysensors.org/topic/12197/best-voc-sensor-for-detecting-a-wide-range-of-voc-s
Maybe look at some law enforcement sites to see if there is anything they use (besides dogs : ).
-
RE: Code Garage to the rescue.
Adding my thanks!
I know it's been quiet around here lately, but my google site search of the MySensors site is still one of my most used links. -
RE: Nb of possible nodes in a mysensors networks with domoticz
If you haven's already, add #define MY_DEBUG to your sketch. Then, look at the serial output from the node.
If you see sancheck fail, then something is probably wrong with the wiring.
You can also paste the serial output into the decoder here: https://www.mysensors.org/build/parser
That should give you more readable info about what is gong on. -
RE: Nb of possible nodes in a mysensors networks with domoticz
You should be able to add up to 254 nodes on one gateway.
You might be able to get some info from the Domoticz log. In Domoticz, go to Setup->Log.
If you reset your new node, you should see messages showing the presentation info and maybe the first values.
If you don't see that, double check your hardware.
If you do see it, it should be in the Setup->Devices list.