Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
K

KevinT

@KevinT
About
Posts
36
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Sump Pit Monitor
    K KevinT

    @TheoL Thanks. As @OldSurferDude says, it's an analog sensor I got off AliExpress Fuel level sensor. I chose a 0-190 ohm sensor, 450 mm long. I wired a 100 ohm resistor in series with the sensor and read the voltage with an analog channel. I do a little extra math to linearise the measurement.
    Fuel Sensor.PNG
    I normally use mysensor nodes, but since this one is always on, I tried using MQTT for a change.

    My Project

  • Sump Pit Monitor
    K KevinT

    Hi All,
    I recently replaced my sump pit pump and installed a battery backup pump at the same time. Naturally, when I saw all the alarms available on the backup system, I wanted to integrate them into my home automation system. I also wanted to add a water level sensor to get a better idea of how often the pump ran and also create a water level alarm.
    e61c8797-9b2e-4cc5-9d17-68e08e8258f4-image.png

    Water level sensor installed.
    20251031_175111.jpg

    I looked at the backup controller and realised it would be difficult to pull signals from it since it isn't easy to disassemble. So, I opted to used photo transistors to read the state of the alarm LEDs.
    20251020_112445.jpg

    The photo transistors are held in place with velcro strips for easy removal.

    20251020_131352.jpg

    My monitoring node consists of an ESP32C3 Super Mini ucontroller configured with 5 digital input channels and 1 analog channel to read the alarm LEDs and water level. I'm using MQTT, for this project, to send the data to Home Assistant.
    20251018_171532.jpg

    Integrated into Home Assistant
    fa40f775-0714-4d36-adcb-d148e4928c3f-image.png
    Overall, after a few adjustments, the systems works really well and provides some peace of mind.

    My Project

  • A low cost energy meter
    K KevinT

    Hi OldSurferDude,
    I just read through your Energy Meter documentation. Nice work. It gives basic theory and calculations. I've been thinking about building an energy meter for a while now. I'll use this as a reference. Thanks.

    My Project

  • HVAC Controller
    K KevinT

    Wow, you're going to be busy. Hope all goes well. Give us an update when you're finished.

    My Project

  • Halloween Lights
    K KevinT

    A little Halloween fun. I've added LED strip lights to an old Halloween plastic ghost and jack-o-lantern and automated switching them off/on using a MySensors node.

    20231029_180758_sm.jpg 20231029_220818_sm.jpg 20231029_220805_sm.jpg 20221030_203644_sm.jpg 20231029_144026_sm.jpg

    My Project led strip light ws2812b

  • WIP: My first PCB: Arduino Pro Mini + RFM69 small node (feedback wanted)
    K KevinT

    @kiesel Thanks for the schematic.
    For the decoupling cap, it should be as close to the 3.3V & Gnd pins of the radio as possible.
    Keep us posted, thanks.

    My Project

  • WIP: My first PCB: Arduino Pro Mini + RFM69 small node (feedback wanted)
    K KevinT

    @kiesel Looks like you are well on your way.
    If you post a schematic, you'll likely get more feedback.
    If you are using one of those Chinese step up converters to 3.3V, I found I had to add a 1 uF cap on Vin to get good performance at no load.9ffc2873-7429-4314-a592-74958b0342b1-image.png

    Most designs I've seen also have a 0.1 uF decoupling cap at the power connections to the radio.

    I can't tell where you are connecting the door switch, directly to an unused pins on the pro mini?

    One limitation to the pro mini is that you only have 2 interrupts and 1 is used for the radio, leaving you 1 for your project, which is probably fine for your application.
    If you used a pro micro (32U4) instead, you would have 5 interrupts, leaving 4 for your project. And I don't think I've ever seen an rfm69 board for the pro micro, so it would be a first. Just a thought.

    My Project

  • Washer & dryer monitor
    K KevinT

    Hi @Leonel-Epps.
    My pleasure, I've gotten a lot of good ideas from the Forum, its always good to give back.

    P.S.
    My washing machine leak sensor alerted me to a leak about 3 weeks. I checked, and sure enough, there was a small puddle of water under the machine. The door seal was wearing and had a few tears in the bellows.
    43b2bfe1-ab47-4a35-8050-1817a877076b-image.png

    I replaced the door seal (thank you youtube videos) and all is good. The washing machine is on the upper floor in my home and could have done serious damage to the lower level if it hadn't been detected quickly.

    Regards,
    KevinT

    My Project

  • Self-balancing robot using MPU-6050
    K KevinT

    HI @Henil179

    I made one myself a couple of years ago, and yes, it was a fair bit of trial and error to get it working.
    Of course, the gain values will be dependent on a number of factors, for example, the torque constant of your motor, the gear ratio, the mass of the robot, where your centre of gravity is located, your loop rate, and where you've located your mpu-6050.
    I located my mpu-6050 over the axis at 12 o'clock near the vertical centre of my bot.

    What are you control variables?
    I used pitch (angle of rotation around motor axis) calculated from gx, gz and tan function.
    I also used pitch rate from the gyro.

    Are you using the onboard DSP of the mpu-6050 to do the calculations?
    I had no luck with this, the mpu-6050 kept freezing up, bad clone I guess.

    You also have to verify the direction of rotation of your motor versus your control variables.
    If you have the wrong direction, it will just run away.

    My gains are Kp:41, Ki:160, Kd:0.4

    I started with only Kp and kept increasing the value until the system became unstable, then I backed off to a stable point.
    Next, I began increasing Ki. This will bring you to steady state stability. It should balance itself when Kp & Ki.
    You will likely have to reduce Kp somewhat as you move to higher Ki values, if your system becomes unstable.
    Finally, I added Kd, to help it react more quickly to changes in angle.

    How do you change your gains?
    I have a bluetooth module on mine, to allow me to send serial commands to the robot, to set the gains and other things.

    My robot's biggest problem is gear backlash. This generates acceleration noise as it vibrates backward/forward, balancing itself. This vibration can feedback on itself and cause instability (when you increase Kp too high). It looks like the robot has Parkinsons when this happens! :grinning:

    I'd like to update my design to use a belt/gear drive or continuous rotation servo, but I haven't had a chance to get back to it.

    I hope this helps.

    Hardware

  • Smart Speakers
    K KevinT

    @ejlane Your Death star speaker sounds pretty impressive! LEDs, timer/stopwatch, impact sensor, and of course speaker & microphone, she'll be loaded. You'll have to share a few pictures. How big will it be? Which Pi fits inside it?

    Hardware

  • Washer & dryer monitor
    K KevinT

    @CrankyCoder The code can be found on Github: Washer-Dryer-Monitor

    My Project

  • Washer & dryer monitor
    K KevinT

    @CrankyCoder

    1. I used a JDY-31 module without the carrier board. The module operates on 3.3V and has a header with 0.1" spacing, perfect for my needs.
    2. Yes, I can share the code. There's the main sketch plus 2 libraries, one for the statistics and a modified version of the debounce library which allows me to debounce a boolean variable. The leak sensor needs this or you can get a flood of leak messages.
      Where do you want me to put the code? I can put it up on Github if you like. Might be a bit much to paste here.

    Regarding the rhasspy project, I hadn't heard about this, I will definitely check it out. Thanks!

    My Project

  • Smart Speakers
    K KevinT

    @ejlane Oh, now I get your question. Text to Speech is built into the Android OS on the phone. There is a synthesis engine which runs on the phone and generates the speech. Although it likely has networked features, for example, loading different voices.
    Project Alice looks quite interesting. I'll definitely be digging deeper. I see it runs on Raspberry Pi's, maybe it will run on my Ubuntu server too.

    Hardware

  • Smart Speakers
    K KevinT

    @ejlane Yes, my speakers are best described as MQTT Text to Speech output devices. Basically, I wrote a small application which runs on a phone using MIT App Inventor. It subscribes to the Speak topic on my local MQTT broker. Whenever someone publishes to the Speak topic, it converts the text to speech. I have quite a few automations in Home Assistant which publish to Speak. I have 3 old phones set up as speakers around my house.

    Regarding AI smart speakers, there is a lot of new stuff out there, with the release of tinyML.
    From what I've read, the easiest type of speech recognition is "Keyword spotting" - see Edge Impulse
    The next level is "Speech to Intent" - see Wio Terminal TinyML course
    And the highest level is Large-vocabulary continuous speech recognition.

    Hardware

  • Washer & dryer monitor
    K KevinT

    @ejlane So far, I have a leak sensor under my clothes washer and hot water heater. I got the idea after my dish washer began leaking and damaged my kitchen cabinets. Dish washer is next...
    I should clarify regarding the smart speaker. They really are MQTT text to speech speakers built from old cell phones I had laying around the house. I wrote an app in MIT app inventor. It could be expanded to play mp3 files of course and displaying images too.
    I would like to create a smart speaker using Jetson Nano, but I haven't gotten around to it yet. Smart speakers might be an idea for a new thread. I haven't looked into it very deeply and could use some ideas too. :slightly_smiling_face:

    My Project

  • Washer & dryer monitor
    K KevinT

    @mfalkvidd Thanks. Yes those are spacers that snap on to the wires. I 3d printed them as well as the enclosure.

    My Project

  • Washer & dryer monitor
    K KevinT

    Hi everyone,
    I'd like to share my latest project.
    I've built up a node which monitors our washing machine for leaks and monitors our dryer for operation.
    The node uses an arduino pro mini with an RFM69 radio. It runs continuously on a 5V wall wart supply regulated down to 3.3V.
    20211107_121801_SM.jpg
    20211107_131305_sm.jpg
    The leak sensor is a classic probe type with 2 parallel conductors and a signal conditioner board (transistor based) which generates an analog voltage to represent the leak signal. When the signal exceeds the programmed threshold the leak is reported (using a binary sensor).
    2f4bf18e-b9e2-4474-9b1a-f6782264a368-image.png
    20211107_122622_sm.jpg
    I used 14 gage solid copper wire to make the probe.

    Dryer operation is sensed using an MPU-6050 accelerometer. I use the absolute value of the vibration signal and pass it through a moving average filter to get a steady signal.
    The node is mounted to the dryer using magnets glued to the enclosure.
    20211107_131346_sm.jpg
    I also threw in a JDY-31 bluetooth module for serial monitoring/debug. So cheap and easy, why not?!

    The vibration threshold can be set in Home Assistant, to allow for easy fine tuning.
    a43e79e7-2a3a-4b94-b02e-65cca6a64519-image.png
    I also added running statistics, updated every minute, of min (var1), max (var2) and average (var3) vibration levels to make it easier to set the threshold.
    341e5f65-d8d1-4db3-9e96-a2a5c695cc80-image.png
    And to keep the wife happy :stuck_out_tongue_winking_eye: , I have our home made smart speakers announce when the dryer is done.

    My Project

  • Sleep for SAMD, STM32 ?
    K KevinT

    @mfalkvidd Good point. I don't know too much about the library, but if that's all it takes, I'll definitely try it.

    Hardware

  • Sleep for SAMD, STM32 ?
    K KevinT

    @zboblamont Thanks for the link, I wasn't finding anything with "sleepy dog", never thought to remove the space. That should help too. I just have to figure out what to do with the RFM radio, if it has a power down mode, etc. Keep us posted on the Sensebender trials. Thx.

    Hardware

  • Sleep for SAMD, STM32 ?
    K KevinT

    @zboblamont When I search the MySensors library (2.3.2) for sleep(), I find the return value "MY_SLEEP_NOT_POSSIBLE" for the sleep functions. file: MyHwSAMD.cpp

    int8_t hwSleep(uint32_t ms)
    {
    	// TODO: Not supported!
    	(void)ms;
    	return MY_SLEEP_NOT_POSSIBLE;
    }
    
    int8_t hwSleep(uint8_t interrupt, uint8_t mode, uint32_t ms)
    {
    	// TODO: Not supported!
    	(void)interrupt;
    	(void)mode;
    	(void)ms;
    	return MY_SLEEP_NOT_POSSIBLE;
    }
    
    

    But, as you mentioned:+1: , it looks like @Alpoy has implemented his own sleep code.
    Feather m0 (SAMD) sleep and interrupt
    I'll have to try it and see if it will work for me.
    Thanks. :-)

    Hardware
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular