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: 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. -
RE: Long time test done with soil sensor!
@Nicklas-Starkel
8 years -- amazing! I have temperature sensors that get over 2 years on a pair of AA batteries, but they do read every 3 minutes: ) -
Wio-E5 (STM32 and SX1262)
Hi All,
I have been messing around with a module called the Wio-E5 from Seeed Studio.
Ever since the NRF5 series came out I have wanted something similar but with a LoRa or RFM69 radio. The Wio-E5 looked like just the thing:https://www.seeedstudio.com/LoRa-E5-Wireless-Module-Tape-Reel-p-5302.html
https://wiki.seeedstudio.com/LoRa-E5_STM32WLE5JC_Module/Cortex-M4 processor and SX1262 radio on a chip (STM32WLE5 series)
Supposedly low power consumption (still testing).
The module is small, but hand solderable package.I finally have one of these running as a coin cell powered temperature / humidity sensor.
My very basic E5 node and gateway
I have been able to get it to talk to my RMF95 gateway also.
If you want to give it a try, I have added code to the MySensors fork on my github: https://github.com/spike314/MySensors
in the development branch.You will need:
- For programming STM32
- STLink. There are cheap ones on aliexpress, but I got a legit STLink-V3MiniE for only US$11.70 on Mouser.
- STM32Cube Programmer from https://www.st.com/
- Arduino Libraries (available in the Arduino library manager)
- STM32duino Low Power
- STM32duino RTC
- Arduino Board files
- STM32 MCU based boards (available in the Arduino board manager)
- Updates for MySensors (already in the development branch on my github)
- STM32 files from Pull Request 1442, from @WhiskyDelta, @Koolru, and others
- RLSX1262 files : based on @eiten SX126X driver and:
- RadioLib https://github.com/jgromes/RadioLib (available in the Arduino library manager). Radiolib supports the STM32WL series. So I am using it for low level code to the radio.
- Update to for AES Conflict
- You will get a compile error because both MySensors and STM32 define AES.
- the offending STM32 file is here: \arduino15\packages\STMicroelectronics\hardware\stm32\2.8.1\system\Drivers\CMSIS\Device\ST\STM32WLxx\Include\stm32wle5xx.h
- In this version, line 998: #define AES ((AES_TypeDef *) AES_BASE)
- I changed to: #define AESWL ((AES_TypeDef *) AES_BASE)
- This resolves the conflict. There are probably better ways. I'd rather change the STM32 code than MySensors, but there are downsides:
- Other files would probably need the update if you are using something besides a STM32WLE5 ....
- If you update the STM32 library, you will have to go and change this define again.
- Clear the factory bootloader
- ground the PB13 pin and reboot the module to get into programming mode
- Using the STM32Cube Programmer:
- Hit Option Bytes (OB) button. Under Read Out Protection, change to AA and hit Apply.
- Disconnect and (re-)Connect. You should get “Data read successfully”.
- Program w Arduino
- In your sketch, #define MY_RADIO_RLSX126x
- Update the SX126X settings in MyConfig.h as desired, or override them in your sketch.
- Use these board settings:
- Board: Generic STM32WL Series
- Board PN: Generic WLE5JCIx
- UART Support: Enabled Generic Serial
- Newlib Nano
- STM31CubeProgrammer (SWD)
And, there you go!
It's all still a bit rough. I'll post some more notes and sample code when I get a chance.Happy New Year!
- For programming STM32
-
RE: No merge into master in the last 5 years, should we use development?
Wow. Has it been 5 years?
I haven't really used development because master has been working for me. Just added some new NRF5 nodes a couple of weeks ago. -
RE: Compiling for STM32F411
@karlheinz2000
Sorry I missed your original post. I've used the WhiskyDelta code successfully for gateways using the 401 and 411. Glad you found it. -
RE: Wall mounted 'mood light' v2
Hi @adds666 . I think it is this bit in the receive() function near the bottom of the code. It gets the value from the V_PERCENTAGE message and maps into the setPattern value:
case RGB_NextPatternChild: // next pattern if (message.type == V_PERCENTAGE) { // Percentage indicates the pattern setPattern = map(message.getInt(), 0, 100, 0, 15) % lastPatternIdx ; // mapper dimmer value to state 0..9 and wrap setLightPattern((setPattern), 500 ); Sprint("Pattern: ") ; Sprintln(setPattern) ; } else if (message.type == V_STATUS){ // if off switch pattern to default == 0 setPattern = 0 ; setLightPattern((setPattern), 500 ); Sprint("Pattern: ") ; Sprintln(setPattern) ; } break ;
-
RE: NRF5 Receive Challenges
Ah ha. It worked. Updated the 250KBS callouts per the pull request.
NRF5 communicates normally.Thanks!
-
RE: NRF5 Receive Challenges
Thanks @mfalkvidd I'll check these out.
I'm seeing an upgrade to 1MBS in my future, but I have a lot on nodes that would need to be updated. I'll probably put that off as long as I can : )