Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. CrankyCoder
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    CrankyCoder

    @CrankyCoder

    I do alot of various tinkering and post it it to youtube
    http://bit.ly/CrankyCoder

    58
    Reputation
    260
    Posts
    1225
    Profile views
    1
    Followers
    1
    Following
    Joined Last Online
    Website www.crankycoder.net Location Florida Age 41

    CrankyCoder Follow

    Best posts made by CrankyCoder

    • My Custom Gateway

      I am pretty new to my sensors. Definitely new to creating pcbs. But I did manage some how to create a small pcb in eagle, did the laser toner transfer method and etched it at home, drilled the holes and soldered it all up and go it working. Next step is to design and 3dprint my custom case and get it mounted.

      alt text
      alt text
      alt text

      Thanks for all the help you guys have given me.

      posted in My Project
      CrankyCoder
      CrankyCoder
    • MySensors MiLight integration

      Hey Guys,
      Figured I would try to start a new thread for this. Last week I posted the code so far as I have for the milight integration in to 2.0 here.

      https://github.com/brunkj/MySensorsMiLight

      I have not been able to work on it since. If anyone wants to take a crack at it and has some milights, feel free πŸ™‚

      I think this could be a very cheap way to replace hue and the $$ that goes with it.

      My uploaded code as of now will allow you to pair with your bulb, you have to send the "ON" command with in something like 3 seconds of turning on your light. That's how it pairs. Once you pair, you can send on and off. There is code there from previous versions for some of the other stuff like color change and dim. But I have not figured that part out as far as how I need to send the data.

      If @ted is still around he may be able to help even more so since he wrote the original. Im just hack jobbing his code up to 2.0 lol

      posted in Hardware
      CrankyCoder
      CrankyCoder
    • RE: Has anyone here made a sleep tracker for measuring your quality of sleep at night?

      So, I have looked in to this. I even had a fitbit that i was hoping to use to determine if I fell asleep at night and turn off lights in my home automation system.

      The down side I ran into is this. I had fitbit setup with ifttt since that was something it could interface with. The sleep detection worked. HOWEVER. It only actually posted info to IFTTT when you woke up, at that point, all sleep related data was submitted. So it didn't track it real time.

      I have been looking in to how to integrate sleep in to my HA but also like you mentioned quality of sleep. The fitbit utilizes motion to determine "restless" sleep. Attaching a bunch of sensors to myself doesn't seem like it would yield comfortable natural sleep. So potentially stuff like a mesh of piezo sensors under a mattress topper would work. that would detect when the values change indicating turning, movement.

      Temperature should be easy (fitbit probably does it, i had a cheap one so it did not).

      If you want to get crazy (which if i had time i would go this route) you can get a fitness watch with a certain chip in it, and reprogram it.

      https://www.youtube.com/watch?v=SBHyQ1OSM-4

      That's what he did. This could be REALLY REALLY cool. You could code in your own parameters and what not, since it's bluetooth LE you could track it via phone or just remote sensors.

      Once you have some basic "restless" night tracking you could do some experimenting (even with the fitbit).

      • track your sleep for a week or 2 to get a baseline of how much time each night you sleep "restless"
      • change thermostat temp up/down - track again and compare.
      • monitor body temp and see if warmer/colder = restless. find sweet spot.
      • integrate body temp monitor to HA system to control thermostat to keep you correct temp

      If you make any progress, definitely let me know, i would be interested to see what you come up with!

      posted in General Discussion
      CrankyCoder
      CrankyCoder
    • RE: πŸ’¬ The Logger Machine - Short and long term serial logging

      any plans to add an RTC on this and be able to timestamp the log entries? I have some sensors that only wake up and do readings every 90 minutes. But sometimes they just stop doing it. So time stamps on the logs would be good to see if there is anything happening right around the time it stops reporting.

      posted in OpenHardware.io
      CrankyCoder
      CrankyCoder
    • RE: pi gateway just stops communicating

      So I have a new development. I noticed something strange. The mysgw stopped again today. I went digging through the syslog around the same time. Didn't see anything just before it went offline, but i did notice that shortly after it went offline it said that the carrier dropped for the nic.

      Apr  2 15:50:55 raspberrypi mysgw: TSF:MSG:READ,200-200-0,s=2,c=2,t=25,pt=0,l=0,sg=0:
      Apr  2 15:50:55 raspberrypi mysgw: GWT:TPS:TOPIC=mygateway1-out/200/2/2/0/25,MSG SENT
      Apr  2 15:51:07 raspberrypi mysgw: TSF:MSG:READ,200-200-0,s=2,c=1,t=23,pt=2,l=2,sg=0:25
      Apr  2 15:51:07 raspberrypi mysgw: GWT:TPS:TOPIC=mygateway1-out/200/2/1/0/23,MSG SENT
      Apr  2 15:52:27 raspberrypi dhcpcd[377]: eth0: carrier lost
      Apr  2 15:52:27 raspberrypi kernel: [  461.474897] smsc95xx 1-1.1:1.0 eth0: link down
      Apr  2 15:52:28 raspberrypi dhcpcd[377]: eth0: deleting address fe80::669:d81d:83fb:3aaa
      Apr  2 15:52:28 raspberrypi avahi-daemon[226]: Withdrawing address record for fe80::669:d81d:83fb:3aaa on eth0.
      Apr  2 15:52:28 raspberrypi avahi-daemon[226]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::669:d81d:83fb:3aaa.
      Apr  2 15:52:28 raspberrypi avahi-daemon[226]: Interface eth0.IPv6 no longer relevant for mDNS.
      Apr  2 15:52:28 raspberrypi dhcpcd[377]: eth0: deleting default route via 192.168.2.1
      Apr  2 15:52:28 raspberrypi dhcpcd[377]: eth0: deleting route to 192.168.2.0/24
      Apr  2 15:52:28 raspberrypi avahi-daemon[226]: Withdrawing address record for 192.168.2.71 on eth0.
      Apr  2 15:52:28 raspberrypi avahi-daemon[226]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.2.71.
      

      So i decided to check a few other times in the last 48 hours and sure enough. Same thing. It seems that something is causing the nic to think it lost it's connection to the switch. The mysgw seems to go in to a weird state. Not sure what error checking is in it or what i could do to log more since i am already on debug for the logging of mysgw.

      Next step i guess will be instead of dhcp reservation ill static assign it. See if that changes anything, and see swap network cable. Maybe hard set some things like the speed/duplex on the switch.

      Just figured i would throw out my latest finding.

      posted in Troubleshooting
      CrankyCoder
      CrankyCoder
    • RE: Testing a sensor with sleep

      Ok I got it to work. I misunderstood how the interrupts worked. Got it now. The culprit was the if statement detecting if the state changed. Since the state was being maintained while sleep, it wasn't firing when I pushed the button.

      Thanks for everyones help!!

      posted in Development
      CrankyCoder
      CrankyCoder
    • RE: Strange Situation

      @zboblamont good to know! I have 2 florescents in my garage that i swapped for LED. These didn't need to bypass the ballast. Might be worth a test to swap those out for the ones in the bathroom (where i see the most interference)

      Guess i know what im going to try when i get home!

      posted in My Project
      CrankyCoder
      CrankyCoder
    • RE: Strange Situation

      So a little new info. Last night i had the lights turn off with the door closed, and no one turned on/off the kitchen/bathroom lights. But what did happen, I turned off a little space heater in my room. When i turned it off, the lights off. Finding this very interesting, i grabbed my phone (in the dark) and check the HA status. The motion detection was triggered... ok... so maybe it's not the PIR/repeater that's the issue...

      It's the LIGHT MODULE!! There is a good chance that the power fluctuations aren't messing with the repeater itself, but actually resetting the arduino with my lamp relays. I think this weekend i need to pull that out, check the code to see if i am saving state to eeprom and also throw some capacitors on the incoming power to see if that helps.

      posted in My Project
      CrankyCoder
      CrankyCoder
    • RE: Free MySensors 2.0 workshop, Friday 9 September in Amersfoort (The Netherlands)

      Is there anything like this going to be done in the US? I would love to help/attend.

      posted in General Discussion
      CrankyCoder
      CrankyCoder
    • RE: Lots of Repeater nodes? (new info December 2017 requested)

      @mfalkvidd roger that πŸ™‚

      posted in Development
      CrankyCoder
      CrankyCoder

    Latest posts made by CrankyCoder

    • RE: Smart Speakers

      @ejlane Correct. 7 nodes = 7 machines. BUT, the 7 current machines are 7 raspberry pi 4 (8gig Ram) modules. it is 1/2 of what my goal is. Eventually it will be a full 14 node cluster.

      I had been doing something similar with the pi satellites. I found that if you tell it to use a UDP broadcast to localhost for the wakeword/recording then it doesn't send the audio frames to the mqtt broker.

      posted in Hardware
      CrankyCoder
      CrankyCoder
    • RE: Smart Speakers

      if you want to play with some ws2812 stuff. i HIGHLY recommend looking at the wled project from aircookie. uses a wemos d1 mini. flash the firmware and off you go. integrates into EVERYTHING. tons of built in lighting effects and some crazy extras like supporting e1.31 protocol so you can add your led strips to christmas light shows using stuff like xlights, vixen2 and falcon pi player.

      I haven't really tested pico but I would guess there is a way to use it as a drop in just like i have with my current marytts.

      As far as the kubernetes, the reason I use that is 2 main reasons.

      1. i currently have a 7 node cluster. So if a container dies, or a node needs to be patched or something, kubernetes just gets it back up and running somewhere else quick.
      2. i am CKA certified and do alot of kubernetes for work. So it eventually bled over into my hobby. it's probably WAY overkill, but I even run my homeautomation software in it.
      posted in Hardware
      CrankyCoder
      CrankyCoder
    • RE: Washer & dryer monitor

      github would be awesome!!

      I commented in the other thread too πŸ™‚

      posted in My Project
      CrankyCoder
      CrankyCoder
    • RE: Smart Speakers

      I have been playing with Rhasspy on and off since the snips debacle. I recently got a little more in to it and have a neat little setup so far.

      I have an instance of rhasspy running on a pi3 with a docker container. That container will soon be moved to something more powerful, but for now it's working quite well. That pi just has a set of simple speakers and an old playstation eye webcam (for the microphone).

      Then I have a small pi zero w with a respeaker 2 mic hat and a tiny like 2 inch "mini loud speaker". That pi obviously has little power, but I have all the heavy lifting being done by the other pi. So the zero is doing the wake word detection, audio record, speech to text (for the moment) and audio playback.

      The other pi is doing the same things but also intent analysis and intent handling. Both pi's are sharing an mqtt broker on my network. So the pi3 is actually processing intents and intent handling for itself AND my little satellite module.

      My text to speech is currently using a docker container of marytts running on yet another machine and handles the tts for both pis.

      For anyone that knows me and my setup, I am a big kubernetes guy, so stuff like the marytts, intent handling, intent analysis all those things are being moved into my cluster. Then all my pi's can basically share the same "brain" as it were.

      My whole system for this just like my home automation is designed to run local. Which is why I am not using google's speech to text or amazon polly or something like that. I know those are more natural sounding and realistically if I need to switch it later it's easy.

      Rhasspy has DEFINITELY made it nice to swap pieces in and out and made it very modular.

      posted in Hardware
      CrankyCoder
      CrankyCoder
    • RE: Washer & dryer monitor

      Alright... you got me... im interested. Have some questions lol.

      1. what bluetooth modules did you use? i have been considering doing this for a number of my devices too
      2. do you have the code for the vibration stuff setup? I just recently added monitoring stuff for my washer. dryer was up next.

      Not sure if you have looked into the rhasspy project for your smart speakers. I am currently working on that myself. I have my first one built and testing satellites with a main "brain" running on a beefier piece of equipment.

      posted in My Project
      CrankyCoder
      CrankyCoder
    • RE: MySensorsTracker - a simple logger for MySensors MQTT messages

      has anyone thrown this in a docker yet? πŸ™‚

      posted in My Project
      CrankyCoder
      CrankyCoder
    • RE: Water level measurement - Ultrasonics V Pressure

      Ah nice. Thanks for the response. I used to get environmental fluctuation's with my ultrasonic sensor I used. I couldn't tell if it was from the air temp between the sensor and the top of the water changing or the barrels themselves heating up and slightly expanding and contracting in the sun through the day or both.

      But it was small like you said so I wasn't concerned. I have 4x55 gallon drums (around 832 liters) total. So I am wondering if maybe pressure sensor would work..

      Thanks for the idea. Definitely interested in testing it. I have ball valves already on the barrels so it won't be difficult to make a little connector rig to test πŸ™‚

      posted in Hardware
      CrankyCoder
      CrankyCoder
    • RE: Water level measurement - Ultrasonics V Pressure

      @CrankyCoder ok. so i made myself go learn something new. Water Pressure Depends Only on Depth, Not Container Shape – 14:57
      β€” G Chang

      So IF I used a pressure sensor like the one mentioned above the pressure of 1 barrel half full is the same as 4 half full connected. So... It would seem that I COULD do measure my volume with 1 sensor and taking in to account how many barrels are open. (I have shut off valves so I can disconnect to repair/clean as needed)

      posted in Hardware
      CrankyCoder
      CrankyCoder
    • RE: Water level measurement - Ultrasonics V Pressure

      Random question. I have 4 rain barrels all connected via connectors. Would a pressure sensor like this work for measuring the liquid in that? Not sure how that would affect the reading.

      posted in Hardware
      CrankyCoder
      CrankyCoder
    • RE: Node doesn’t seem to reconnect

      I have done some digging around and and I am not 100% sure or not but I do not recall if the relay module in the node is optoisolated, so that could be part of the interference if you think that could be the issue. I am pretty sure the 5v power for the relay module and the arduino are coming from the same 5v psu BUT I am 99.99% sure I do not have a cap across the 5v/gnd on the relay module, so I guess I could pull that module out and see about replacing it with an optoisolated one (if it's not isolated) and put a decoupling capacitor on the relay module itself.

      Just some thoughts.

      posted in Troubleshooting
      CrankyCoder
      CrankyCoder