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.




3576 posts

Uber Geek
+1 received by user: 389

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

Uber Geek
+1 received by user: 175

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.



3576 posts

Uber Geek
+1 received by user: 389

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


 
 
 
 


1572 posts

Uber Geek
+1 received by user: 175

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.

2090 posts

Uber Geek
+1 received by user: 1000


  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.

 

 




3576 posts

Uber Geek
+1 received by user: 389

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


2090 posts

Uber Geek
+1 received by user: 1000


  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.

 

 


513 posts

Ultimate Geek
+1 received by user: 80

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?


997 posts

Ultimate Geek
+1 received by user: 358

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.


1572 posts

Uber Geek
+1 received by user: 175

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.




3576 posts

Uber Geek
+1 received by user: 389

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


20375 posts

Uber Geek
+1 received by user: 3880

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 »

Phone prices rising as users move upmarket
Posted 24-Nov-2017 17:16


Talking net neutrality on RNZ Nine-to-Noon
Posted 24-Nov-2017 12:11


Air New Zealand experiments with blockchain technology
Posted 23-Nov-2017 15:39


Symantec selects Amazon Web Services to deliver cloud security
Posted 23-Nov-2017 10:40


New Zealand Ministry of Education chooses Unisys for cloud-based education resourcing management system
Posted 22-Nov-2017 22:00


Business analytics software powers profits for NZ wine producers
Posted 22-Nov-2017 21:52


Pyrios strikes up alliance with Microsoft integrator UC Logiq
Posted 22-Nov-2017 21:51


The New Zealand IT services ecosystem - it's all digital down here
Posted 22-Nov-2017 21:49


Volvo to supply tens of thousands of autonomous drive compatible cars to Uber
Posted 22-Nov-2017 21:46


From small to medium and beyond: Navigating the ERP battlefield
Posted 21-Nov-2017 21:12


Business owners: ERP software selection starts (and finishes) with you
Posted 21-Nov-2017 21:11


Why I'm not an early adopter
Posted 21-Nov-2017 10:39


Netatmo launches smart home products in New Zealand
Posted 20-Nov-2017 20:06


Huawei Mate 10: Punchy, long battery life, artificial intelligence
Posted 20-Nov-2017 16:30


Propel launch Disney Star Wars Laser Battle Drones
Posted 19-Nov-2017 21:26



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.