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.




3731 posts

Uber Geek
+1 received by user: 438

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

Uber Geek
+1 received by user: 182

Subscriber

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

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



3731 posts

Uber Geek
+1 received by user: 438

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


 
 
 
 


1623 posts

Uber Geek
+1 received by user: 182

Subscriber

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

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

2158 posts

Uber Geek
+1 received by user: 1036


  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.

 

 




3731 posts

Uber Geek
+1 received by user: 438

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


2158 posts

Uber Geek
+1 received by user: 1036


  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.

 

 


520 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?


1346 posts

Uber Geek
+1 received by user: 492

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.


1623 posts

Uber Geek
+1 received by user: 182

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.




3731 posts

Uber Geek
+1 received by user: 438

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


20693 posts

Uber Geek
+1 received by user: 4010

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 »

Intel reimagines data centre storage with new 3D NAND SSDs
Posted 16-Feb-2018 15:21


Ground-breaking business programme begins in Hamilton
Posted 16-Feb-2018 10:18


Government to continue search for first Chief Technology Officer
Posted 12-Feb-2018 20:30


Time to take Appleā€™s iPad Pro seriously
Posted 12-Feb-2018 16:54


New Fujifilm X-A5 brings selfie features to mirrorless camera
Posted 9-Feb-2018 09:12


D-Link ANZ expands connected smart home with new HD Wi-Fi cameras
Posted 9-Feb-2018 09:01


Dragon Professional for Mac V6: Near perfect dictation
Posted 9-Feb-2018 08:26


OPPO announces R11s with claims to be the picture perfect smartphone
Posted 2-Feb-2018 13:28


Vocus Communications wins a place on the TaaS panel
Posted 26-Jan-2018 15:16


SwipedOn raises $1 million capital
Posted 26-Jan-2018 15:15


Slingshot offers unlimited gigabit fibre for under a ton
Posted 25-Jan-2018 13:51


Spark doubles down on wireless broadband
Posted 24-Jan-2018 15:44


New Zealand's IT industry in 2018 and beyond
Posted 22-Jan-2018 12:50


Introducing your new workplace headache: Gen Z
Posted 22-Jan-2018 12:45


Jucy set to introduce electric campervan fleet
Posted 22-Jan-2018 12: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.