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.




3479 posts

Uber Geek
+1 received by user: 344

Trusted

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

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
1560 posts

Uber Geek
+1 received by user: 173

Subscriber

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

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



3479 posts

Uber Geek
+1 received by user: 344

Trusted

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

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


 
 
 
 


1560 posts

Uber Geek
+1 received by user: 173

Subscriber

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

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

1981 posts

Uber Geek
+1 received by user: 940


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

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.

 

 




3479 posts

Uber Geek
+1 received by user: 344

Trusted

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

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


1981 posts

Uber Geek
+1 received by user: 940


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

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.

 

 


499 posts

Ultimate Geek
+1 received by user: 79

Trusted

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

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?


762 posts

Ultimate Geek
+1 received by user: 266

Subscriber

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

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.


1560 posts

Uber Geek
+1 received by user: 173

Subscriber

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

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.




3479 posts

Uber Geek
+1 received by user: 344

Trusted

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

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


20193 posts

Uber Geek
+1 received by user: 3787

Trusted
Subscriber

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

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 »

Intel unveils the 8th Gen Intel Core Processor family for desktop
Posted 25-Sep-2017 19:45


Chow brothers plan to invest NZ$100 million in technology
Posted 24-Sep-2017 16:24


Symantec protects data everywhere with Information Centric Security
Posted 21-Sep-2017 15:33


FUJIFILM introduces X-E3 mirrorless camera with wireless connectivity
Posted 18-Sep-2017 13:53


Vodafone announces new plans with bigger data bundles
Posted 15-Sep-2017 10:51


Skinny launches phone with support for te reo Maori
Posted 14-Sep-2017 08:39


If Vodafone dropping mail worries you, you’re doing online wrong
Posted 11-Sep-2017 13:54


Vodafone New Zealand deploy live 400 gigabit system
Posted 11-Sep-2017 11:07


OPPO camera phones now available at PB Tech
Posted 11-Sep-2017 09:56


Norton Wi-Fi Privacy — Easy, flawed VPN
Posted 11-Sep-2017 09:48


Lenovo reveals new ThinkPad A Series
Posted 8-Sep-2017 14:37


Huawei passes Apple for the first time to capture the second spot globally
Posted 8-Sep-2017 10:45


Vodafone initiative enhances te reo Maori pronunciation on Google Maps
Posted 8-Sep-2017 10:40


Voyager Internet expand local internet phone services company with Conversant acquisition
Posted 6-Sep-2017 18:27


NOW Expands in to Tauranga
Posted 5-Sep-2017 18:16



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.