Navigation

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

    GuyP

    @GuyP

    12
    Reputation
    46
    Posts
    868
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Website http://

    GuyP Follow

    Best posts made by GuyP

    • sensors in boxes

      I think I must have read almost every page on this site when I discovered it. I really loved this idea. For ages I've wanted to monitor and interact with my surroundings via some home automation solution, but all the commercial solutions are really expensive and limited. MySenors and OpenHAB really give me the customisation I want.

      The only thing missing was putting everything together. I'm working on that. But first I needed to create my sensors, as small/cheap as possible and battery powered.

      Here's my first pass at building the temperature sensor, in a 3D printed box which also houses the battery compartment.

      i2iurp.jpg

      The circuit board (Single Sides Etch) slides in on groves in the walls. I added the battery monitoring to the Arduino as I really need to know if/when the batteries are going flat. That's all pushed back to openHAB which I can then create a rule to watch for battery low, however so far the batteries seem that they will last for ever!

      The contacts on the battery box are small flat metal. Aluminium between the batteries, and Copper for the terminals. I used copper as I could more easily solder to it.

      Making it very easy to assemble.

      posted in My Project
      GuyP
      GuyP
    • MQTT ethernet gateway Works great for 3+ hours then stops

      I've built an ethernet gateway from scratch.. using the ENC28J60 Ethernet module and NRF24L01 Radio. I loaded the MQTT gateway into my ATMega268 and started it going...

      For the first few hours everything is working perfectly. I can see it receiving updates from the the sensors (Temperature for the moment), and sending it on to openHAB. I can see a TCP connection on the OpenHAB server and all will be well.

      After 3+ hours though the MQTT will still be receiving traffic from the sensor but will stop Ethernet communication and not send it onto OpenHAB. I suspect it's a overflow issue somewhere.. As soon as I reboot the MQTT gateway all is well again.

      I've seen a few people report issues similar to this and discussing a watchdog to reboot the MQTT if it fails. I'd rather not do this though, and better to find the underlaying issue. I also read that not all the ATMega support it.

      posted in Troubleshooting
      GuyP
      GuyP
    • RE: sensors in boxes

      Sure here you go..

      TempSensorBase.stl

      TempSensorTop.stl

      posted in My Project
      GuyP
      GuyP
    • RE: MQTT ethernet gateway Works great for 3+ hours then stops

      And now in it's 3D Printed case..

      IMG_0403.jpg

      posted in Troubleshooting
      GuyP
      GuyP
    • RE: MQTT ethernet gateway Works great for 3+ hours then stops

      I was still seeing it stop working. However after further diagnostics it seems the issue lies with the ethernet side of things, the Arduino and Radio still continue to function.

      I tried to use the Arduino to reboot it's self, which didn't work, but also would not have rebooted the ethernet modules and thus would not have solved this.

      I've ended up building a 555 timer circuit which is triggered from the Arduino (Digital pin 3), the time fires and triggers a relay to remove power from everything for 2 seconds. Thus we end up with a complete reboot.

      Here's my circuit diagram, take 5Volts directly and then PWR is fed into my previous circuit that way when the relay clicks over all power to the Arduino and ethernet is removed.

      GWReset.png

      posted in Troubleshooting
      GuyP
      GuyP

    Latest posts made by GuyP

    • RE: sensors in boxes

      Excellent...be careful, not to remove too much from the right side, as the radio transmitter will over hang which makes it harder to fit in a box.

      posted in My Project
      GuyP
      GuyP
    • RE: sensors in boxes

      Yes You'll want to remove or reroute them. I was only think of a single layer board so those are link wires. Sorry I should have talked about those.

      posted in My Project
      GuyP
      GuyP
    • RE: sensors in boxes

      Sure here you go..

      TempSensorBase.stl

      TempSensorTop.stl

      posted in My Project
      GuyP
      GuyP
    • RE: sensors in boxes

      Ok now I'm jealous.. that looks fantastic.

      1437172414002-upload_-1-8.jpg

      posted in My Project
      GuyP
      GuyP
    • RE: sensors in boxes

      Oh a few people have suggested these guys for cheap PCB production..
      http://dirtypcbs.com

      I've not tried them myself yet.

      posted in My Project
      GuyP
      GuyP
    • RE: sensors in boxes

      Awesome... send photos when you've made them! 🙂

      posted in My Project
      GuyP
      GuyP
    • RE: sensors in boxes

      Yes it's very cheap and simple to build, When I was etching the boards I was etching 12 at a time and cutting them down.

      That 28pin Narrow socket looks to be the right thing (seems to say the right things anyway), the graphic is odd though.

      I also bought all the parts in bulk which made for even more savings, specially for resistors and capacitors where I bought maybe 100 and was paying less than 1p a unit.

      I was also able to buy the Dallas Temp sensors in bulk and saved quite well on those as well

      posted in My Project
      GuyP
      GuyP
    • RE: sensors in boxes

      Sorry my fault... I'm not very good at documentation! 😞

      There are no diodes on the boards... Which board are you referring to.. the TempSensor board just has:

      • 1x dallas Tempensor
      • 2x capacitors for the crystal
      • 1x 16Mhz Crystal
      • 1x 4.7uf Capacitor accros the power lines
      • 1 resistor for the Dallas sensor to provide power
      • 1x 470k resistor and 1x 1m resistor for the battery power level monitoring.

      I don't even have the pins for updating the Arduino, I pull it from the socket and write it in a uno board. I do however have a GND, and serial TX pin so I can see the chip working if necessary.

      posted in My Project
      GuyP
      GuyP
    • RE: sensors in boxes

      Here's the BRD files..

      TempSensorRepeater.brd

      TempSensor.brd

      posted in My Project
      GuyP
      GuyP
    • RE: sensors in boxes

      I'm just flashing with the uno boot loader...

      I have been looking at doing away with the boot loader, but really the advantages such as extra space and boot speed are not important at the moment.

      posted in My Project
      GuyP
      GuyP