Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


3886 posts

Uber Geek
+1 received by user: 479

Trusted

Topic # 223084 12-Sep-2017 09:20
Send private message

I have a bunch of zwave devices, and the odd bluetooh and some DHT sensors attached to a raspberry pi.

 

The main issue I have with the zwave sensors (https://aeotec.com/z-wave-sensor) apart from price is that you need a USB wall plug + cable to power it (CBA with batter powered - the bluetooth ones are, and it's a PITA to change batteries).

 

My pi one is great, just does it's job...but also suffers the same problem on needing a wall plug.

 

So I've started looking at then D1 Minis, cheap as chips.  But I'm trying to figure out a way of getting an enclosure that will inlcude a power plug, so I'm envisaging, a small USB power supply (sort of this formfactor: http://www.harveynorman.co.nz/apple-computers/apple-accessories/apple-5w-usb-power-adapter.html  - though annoyingly the usb is on the face, the side would be more compact).

 

Thoughts?  Better suggestions?





Previously known as psycik

NextPVR/OpenHAB: 
Gigabyte AMD A8 Brix --> Samsung LA46A650D via HDMI, NextPVR,OpenHAB with Aeotech ZWave Controller
Media:Chromecast v2, ATV4, Roku3, Raspberry PI temperature Sensors and Bluetooth LE Sensors,HDHomeRun Dual
Windows 2012 
Host (Plex Server/Crashplan): 2x2TB, 2x3TB, 1x4TB using DriveBender, Samsung 850 evo 512 GB SSD, Hyper-V Server with 1xW10, 1xW2k8, 2xUbuntu 16.04 LTS, Crashplan, NextPVR channel for Plex,NextPVR Metadata Agent and Scanner for Plex


Create new topic
1661 posts

Uber Geek
+1 received by user: 186

Subscriber

  Reply # 1862646 12-Sep-2017 09:25
Send private message

Look into the Xiaomi sensors + gateway. Cheap, long battery life, great form factor.



3886 posts

Uber Geek
+1 received by user: 479

Trusted

  Reply # 1862649 12-Sep-2017 09:31
Send private message

I've seen the sensors, I haven't seen the gateway though.  What do they transmit on, wifi to the gateway, or something else (rf/????  ie )how close does the gateway have to be to the sesnors?  (also batteries.....booo)





Previously known as psycik

NextPVR/OpenHAB: 
Gigabyte AMD A8 Brix --> Samsung LA46A650D via HDMI, NextPVR,OpenHAB with Aeotech ZWave Controller
Media:Chromecast v2, ATV4, Roku3, Raspberry PI temperature Sensors and Bluetooth LE Sensors,HDHomeRun Dual
Windows 2012 
Host (Plex Server/Crashplan): 2x2TB, 2x3TB, 1x4TB using DriveBender, Samsung 850 evo 512 GB SSD, Hyper-V Server with 1xW10, 1xW2k8, 2xUbuntu 16.04 LTS, Crashplan, NextPVR channel for Plex,NextPVR Metadata Agent and Scanner for Plex


1661 posts

Uber Geek
+1 received by user: 186

Subscriber

  Reply # 1862659 12-Sep-2017 09:55
Send private message

ZigBee. Pretty good range i have found. Gateway speaks wifi to your network.

2342 posts

Uber Geek
+1 received by user: 1133


  Reply # 1862661 12-Sep-2017 10:01
Send private message

I also like the D1 minis :)

 

What I think you want is to build a 230VAC/5VDC converter plus a D1 mini plus a sensor (temperature, PIR, whatever) into a single box that plugs into the a wall outlet. Right?

 

My approach would be to buy a cheap 230VAC/5VDC converters (e.g. USB power supply), cut the wires short and solder (or otherwise connect) to the D1. I'd then design and 3D print an enclosure to hold the D1 and the sensor(s). I'd design it to clip/screw/glue to the converter.

 

 




3886 posts

Uber Geek
+1 received by user: 479

Trusted

  Reply # 1862699 12-Sep-2017 10:35
Send private message

frankv:

 

I also like the D1 minis :)

 

What I think you want is to build a 230VAC/5VDC converter plus a D1 mini plus a sensor (temperature, PIR, whatever) into a single box that plugs into the a wall outlet. Right?

 

My approach would be to buy a cheap 230VAC/5VDC converters (e.g. USB power supply), cut the wires short and solder (or otherwise connect) to the D1. I'd then design and 3D print an enclosure to hold the D1 and the sensor(s). I'd design it to clip/screw/glue to the converter.

 

 

 

Yeah pretty much.  The power supply, what sort of thing are you thinking of?  One with a usb A socket?  or is there another you can think of?





Previously known as psycik

NextPVR/OpenHAB: 
Gigabyte AMD A8 Brix --> Samsung LA46A650D via HDMI, NextPVR,OpenHAB with Aeotech ZWave Controller
Media:Chromecast v2, ATV4, Roku3, Raspberry PI temperature Sensors and Bluetooth LE Sensors,HDHomeRun Dual
Windows 2012 
Host (Plex Server/Crashplan): 2x2TB, 2x3TB, 1x4TB using DriveBender, Samsung 850 evo 512 GB SSD, Hyper-V Server with 1xW10, 1xW2k8, 2xUbuntu 16.04 LTS, Crashplan, NextPVR channel for Plex,NextPVR Metadata Agent and Scanner for Plex


2342 posts

Uber Geek
+1 received by user: 1133


  Reply # 1862757 12-Sep-2017 12:28
Send private message

The easiest answer would be to get a USB supply with a wired in micro-USB connector. You just plug that into the USB connector on the D1. But then you have probably a meter of wire to hide and the micro-USB connector sticking out.

 

So I'd get a USB supply with a wired-in cable (e.g. https://www.aliexpress.com/item/15W-AC-Converter-Adapter-5V-3A-Power-Supply-Charger-AU-plug-3000mA-MICRO-USB/32832175323.html) and cut the cord short (100mm or less?). Then wire up the red wire (IIRC the colours) to one pin of a 2-pin 0.1" female header, and the black wire to the other. Push this connector onto the +5V/GND pins on the D1 (the right way round!) and you're done. Or you could use an 8-way header and use some of the other pins to connect your sensor(s) to the D1.

 

If you really want the smallest enclosure possible, don't solder the header pins to the D1. Instead, solder the red and black wires directly to the +5V/GND pads on the D1.

 

You could hot-glue or tape the D1 and sensors to the USB supply. If you didn't want them to be visible, cut the the bottom off a plastic coke bottle, or get a project box from Jaycar, or a click-clack box from the Warehouse, or cut up a kid's toy, or whatever, and hot-glue it in place. Or any amount of fancier options, including a custom-designed 3D-printed enclosure.

 

 


529 posts

Ultimate Geek
+1 received by user: 80

Trusted

  Reply # 1862766 12-Sep-2017 12:54
Send private message

SumnerBoy: ZigBee. Pretty good range i have found. Gateway speaks wifi to your network.

 

Integration to OpenHAB as well, or?  Any links to where to buy exactly?


1946 posts

Uber Geek
+1 received by user: 749

Subscriber

  Reply # 1862767 12-Sep-2017 12:57
Send private message

Look for AC to DC buck converters on aliexpress.

 

But... batteries in z-wave devices in powersave mode last for months or years - a big advantage over WiFi devices.


1661 posts

Uber Geek
+1 received by user: 186

Subscriber

  Reply # 1862768 12-Sep-2017 12:57
Send private message

Yep there is an OH2 binding although I am still on OH1.8 so wrote a little python proxy to convert the gateway messages to MQTT and OH subscribes to these. I bought my gateway from these guys;

 

https://www.aliexpress.com/item/2016-New-Xiaomi-Smart-Controller-Center-Xiaomi-Smart-Home-Kit-Upgrade-version-Control-Radio-Yi-Camers/32645949131.html

 

It is on special, think I paid about $US34.




3886 posts

Uber Geek
+1 received by user: 479

Trusted

  Reply # 1862770 12-Sep-2017 12:59
Send private message

kryptonjohn:

 

Look for AC to DC buck converters on aliexpress.

 

But... batteries in z-wave devices in powersave mode last for months or years - a big advantage over WiFi devices.

 

 

I've got some bluetooth ones (https://www.geekzone.co.nz/davidcole/8931)  that just push out advertising data every few minutes.  I get  about 4 - 6 months from a CR2032 battery.  It is something I'm used to, but I prefer not to.





Previously known as psycik

NextPVR/OpenHAB: 
Gigabyte AMD A8 Brix --> Samsung LA46A650D via HDMI, NextPVR,OpenHAB with Aeotech ZWave Controller
Media:Chromecast v2, ATV4, Roku3, Raspberry PI temperature Sensors and Bluetooth LE Sensors,HDHomeRun Dual
Windows 2012 
Host (Plex Server/Crashplan): 2x2TB, 2x3TB, 1x4TB using DriveBender, Samsung 850 evo 512 GB SSD, Hyper-V Server with 1xW10, 1xW2k8, 2xUbuntu 16.04 LTS, Crashplan, NextPVR channel for Plex,NextPVR Metadata Agent and Scanner for Plex


21121 posts

Uber Geek
+1 received by user: 4209

Trusted
Subscriber

  Reply # 1864845 13-Sep-2017 23:22
3 people support this post
Send private message

just buy a sonoff DHT instead of trying to stick your own wemos mini and power supply together into a suitable case etc.





Richard rich.ms

Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08


Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03


Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27


Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13


Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00


Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12


Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52


Kogan.com to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34


Enable doubles fibre broadband speeds for its most popular wholesale service in Christchurch
Posted 2-Jun-2018 20:07


All or Nothing: New Zealand All Blacks arrives on Amazon Prime Video
Posted 2-Jun-2018 16:21


Innovation Grant, High Tech Awards and new USA office for Kiwi tech company SwipedOn
Posted 1-Jun-2018 20:54


Commerce Commission warns Apple for misleading consumers about their rights
Posted 30-May-2018 13:15


IBM leads Call for Code to use cloud, data, AI, blockchain for natural disaster relief
Posted 25-May-2018 14:12


New FUJIFILM X-T100 aims to do better job than smartphones
Posted 24-May-2018 20:17


Stuff takes 100% ownership of Stuff Fibre
Posted 24-May-2018 19:41



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.