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.




4706 posts

Uber Geek

Trusted

#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

OpenHAB: Gigabyte AMD A8 BrixOpenHAB with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Xiaomi Humidity and Temperature sensors and Bluetooth LE Sensors
Media:Chromecast v2, ATV4, Roku3, HDHomeRun Dual
Windows 10
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
1703 posts

Uber Geek

Subscriber

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

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



4706 posts

Uber Geek

Trusted

  #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

OpenHAB: Gigabyte AMD A8 BrixOpenHAB with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Xiaomi Humidity and Temperature sensors and Bluetooth LE Sensors
Media:Chromecast v2, ATV4, Roku3, HDHomeRun Dual
Windows 10
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


 
 
 
 


1703 posts

Uber Geek

Subscriber

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

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

3143 posts

Uber Geek

Lifetime subscriber

  #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.

 

 




4706 posts

Uber Geek

Trusted

  #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

OpenHAB: Gigabyte AMD A8 BrixOpenHAB with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Xiaomi Humidity and Temperature sensors and Bluetooth LE Sensors
Media:Chromecast v2, ATV4, Roku3, HDHomeRun Dual
Windows 10
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


3143 posts

Uber Geek

Lifetime subscriber

  #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.

 

 


610 posts

Ultimate Geek

Trusted

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


 
 
 
 


2523 posts

Uber Geek

Lifetime subscriber

  #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.


1703 posts

Uber Geek

Subscriber

  #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.




4706 posts

Uber Geek

Trusted

  #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

OpenHAB: Gigabyte AMD A8 BrixOpenHAB with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave, Xiaomi Humidity and Temperature sensors and Bluetooth LE Sensors
Media:Chromecast v2, ATV4, Roku3, HDHomeRun Dual
Windows 10
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


23016 posts

Uber Geek

Trusted
Subscriber

  #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 and LinkedIn »



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 »

New Vodafone mobile data plans with unlimited data
Posted 26-Feb-2020 06:55


Vodafone launches innovation initiatives to help businesses use 5G
Posted 26-Feb-2020 05:00


Ultimate Ears HYPERBOOM brings massive sound and extreme bass
Posted 25-Feb-2020 09:00


Withings launches three new devices to help monitor heart health from home
Posted 13-Feb-2020 20:05


Auckland start-up Yourcar matches new car buyers with dealerships
Posted 13-Feb-2020 18:05


School gardens go high tech to teach kids the importance of technology
Posted 13-Feb-2020 11:10


Malwarebytes finds Mac threats outpace Windows for the first time
Posted 13-Feb-2020 08:01


Amazon launches Echo Show 8 in Australia and New Zealand
Posted 8-Feb-2020 20:36


Vodafone New Zealand starts two year partnership with LetsPlay.Live
Posted 28-Jan-2020 11:24


Ring launches indoor-only security camera
Posted 23-Jan-2020 17:26


New report findings will help schools implement the digital technologies curriculum content
Posted 23-Jan-2020 17:25


N4L to upgrade & support wireless internet inside schools
Posted 23-Jan-2020 17:22


Netflix releases 21 Studio Ghibli works
Posted 22-Jan-2020 11:42


Vodafone integrates eSIM into device and wearable roadmap
Posted 17-Jan-2020 09:45


Do you need this camera app? Group investigates privacy implications
Posted 16-Jan-2020 03:30



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.