Question for you electronic DIY people
-
Did a quick search and found this: Bluetooth HC-06 Module Interfacing with PIC Microcontroller[^] You might use a similar module and the PIC's USART. And this, what the temerature sensor is concerned, which is indeed hooked up to an analog input for the D/A converter: Temperature Sensor using PIC microcontroller[^] If this PIC16F877A has a USART, you can hook it up as shown, forget about the display and hook up the the Bluetooth module to the USART. Done with the hardware, let the software part begin!
I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
-
HAve a look at this: http://ww1.microchip.com/downloads/en/DeviceDoc/41446a.pdf[^] - It may give you some ideas, particularly case study 3.
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
Man, you basically solved the problem! Thanks! :thumbsup:
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
The microcontroller is extremely expensive: PIC 16F877A-I - P: MCU, PICmicro, 14 KB, 20 MHz, DIL-40 bei reichelt elektronik[^] :)
I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
-
I'm looking for hardware platforms which should be very low power (they should last several months on AA batteries, max 2-3 each), possibly low cost with Bluettoth or some other radio capabilities, available temperature sensors (not necessarily on chip) and not too expensive. I'm trying to build my smart thermostat and these objects would be the temperature sensors in the various rooms. The main controller will probably be a Raspberry or an Arduino, no limitations on power supply since it will be wired. Do you have any suggestion or ideas? Each remote sensor should not cost more that 20-30€ including the actual temperature sensor.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
Damn! If only CDP1802 were still around! I'd love to hear his take on this!
I wanna be a eunuchs developer! Pass me a bread knife!
-
I'm looking for hardware platforms which should be very low power (they should last several months on AA batteries, max 2-3 each), possibly low cost with Bluettoth or some other radio capabilities, available temperature sensors (not necessarily on chip) and not too expensive. I'm trying to build my smart thermostat and these objects would be the temperature sensors in the various rooms. The main controller will probably be a Raspberry or an Arduino, no limitations on power supply since it will be wired. Do you have any suggestion or ideas? Each remote sensor should not cost more that 20-30€ including the actual temperature sensor.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
This guy has done most of the work for you! [PiHome - Smart Heating Control](http://www.pihome.eu/) Notably [Battery Powered Arduino DS18B20 Temperature Sensor - PiHome](http://www.pihome.eu/2017/10/11/battery-powered-ds18b20-temperature-sensors/)
-
I'm looking for hardware platforms which should be very low power (they should last several months on AA batteries, max 2-3 each), possibly low cost with Bluettoth or some other radio capabilities, available temperature sensors (not necessarily on chip) and not too expensive. I'm trying to build my smart thermostat and these objects would be the temperature sensors in the various rooms. The main controller will probably be a Raspberry or an Arduino, no limitations on power supply since it will be wired. Do you have any suggestion or ideas? Each remote sensor should not cost more that 20-30€ including the actual temperature sensor.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
-
This guy has done most of the work for you! [PiHome - Smart Heating Control](http://www.pihome.eu/) Notably [Battery Powered Arduino DS18B20 Temperature Sensor - PiHome](http://www.pihome.eu/2017/10/11/battery-powered-ds18b20-temperature-sensors/)
-
Sorry, it is in german ... Homematic DIY-Projekt: Thermometer und Hydrometer – fertige Platine im Eigenbau › technikkram.net[^]
Will take a look anyway, I read documentation in Russian (I can't read nor speak Russian) and made it work... maybe I will manage again!
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
-
I'm looking for hardware platforms which should be very low power (they should last several months on AA batteries, max 2-3 each), possibly low cost with Bluettoth or some other radio capabilities, available temperature sensors (not necessarily on chip) and not too expensive. I'm trying to build my smart thermostat and these objects would be the temperature sensors in the various rooms. The main controller will probably be a Raspberry or an Arduino, no limitations on power supply since it will be wired. Do you have any suggestion or ideas? Each remote sensor should not cost more that 20-30€ including the actual temperature sensor.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
-
Did a quick search and found this: Bluetooth HC-06 Module Interfacing with PIC Microcontroller[^] You might use a similar module and the PIC's USART. And this, what the temerature sensor is concerned, which is indeed hooked up to an analog input for the D/A converter: Temperature Sensor using PIC microcontroller[^] If this PIC16F877A has a USART, you can hook it up as shown, forget about the display and hook up the the Bluetooth module to the USART. Done with the hardware, let the software part begin!
I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
This is definitely the way I would do it, but I'd go with a Bluetooth Low Energy version of the HC-06. There are variants, but HM-10 is a good starting search term for a lower power drop-in hardware replacement for an HC-06. Start with the HC-06, get familiar with the hardware/software, then switch to using the BLE version and figure out the differences in usage. The bluetooth radio is going to be your biggest power draw, hands down, so you should definitely consider the BLE version. PIC is a really good idea, you can get nA sleep currents out of them if you pick the right chip and know what you're doing (read the datasheets).
-
I'm looking for hardware platforms which should be very low power (they should last several months on AA batteries, max 2-3 each), possibly low cost with Bluettoth or some other radio capabilities, available temperature sensors (not necessarily on chip) and not too expensive. I'm trying to build my smart thermostat and these objects would be the temperature sensors in the various rooms. The main controller will probably be a Raspberry or an Arduino, no limitations on power supply since it will be wired. Do you have any suggestion or ideas? Each remote sensor should not cost more that 20-30€ including the actual temperature sensor.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
I'll be happy to beta test the setup when you get it done. :)
Life is killing me
-
I'm looking for hardware platforms which should be very low power (they should last several months on AA batteries, max 2-3 each), possibly low cost with Bluettoth or some other radio capabilities, available temperature sensors (not necessarily on chip) and not too expensive. I'm trying to build my smart thermostat and these objects would be the temperature sensors in the various rooms. The main controller will probably be a Raspberry or an Arduino, no limitations on power supply since it will be wired. Do you have any suggestion or ideas? Each remote sensor should not cost more that 20-30€ including the actual temperature sensor.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
This brings back memories of the systems I used to configure and install back in the 1980s. RTDs for temperature sensors, unshielded twisted pair back to the cabinet, and wired into a multipoint analog input card that measured the resistance to which I applied a non-linear formula to get temperature.
-
I'm looking for hardware platforms which should be very low power (they should last several months on AA batteries, max 2-3 each), possibly low cost with Bluettoth or some other radio capabilities, available temperature sensors (not necessarily on chip) and not too expensive. I'm trying to build my smart thermostat and these objects would be the temperature sensors in the various rooms. The main controller will probably be a Raspberry or an Arduino, no limitations on power supply since it will be wired. Do you have any suggestion or ideas? Each remote sensor should not cost more that 20-30€ including the actual temperature sensor.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
Look at Texas Instruments, they have a number of small inexpensive ($25) dev boards. They're called Launchpads. I used one on a project at work to start developing code before we had are own hardware. Also, you get the development environment for free, it's called Code Composer Studio (based on Eclipse). If you use one of their 'Tiva' processors (ARM based) they've got lots of example projects and provide you with code that accesses all of their built in peripherals. The samples and such are include in what they call 'Tivaware'.
-
I'm looking for hardware platforms which should be very low power (they should last several months on AA batteries, max 2-3 each), possibly low cost with Bluettoth or some other radio capabilities, available temperature sensors (not necessarily on chip) and not too expensive. I'm trying to build my smart thermostat and these objects would be the temperature sensors in the various rooms. The main controller will probably be a Raspberry or an Arduino, no limitations on power supply since it will be wired. Do you have any suggestion or ideas? Each remote sensor should not cost more that 20-30€ including the actual temperature sensor.
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
I'm a engineer and has done may projects over the years from amps for my home sound system to computer servers, motion detectors and things in-between. One thing I found is although fun, pure DIY isn't always the most cost effective answer. In your case I'd be tempted to by an off the shelf sensor for the rooms and focus my energies on the smart thermostat itself giving it features and abilities not found elsewhere. I use a smart thermostat and smart vents in the home for climate control. Both systems offer temperature sensors running about 30e-35e. Although they do use batteries in 1 yr, never had to change one (uses cr2032 <1e each). Focus on the fun unique parts of your project and shortcut the other parts. I do the same when cooking
-
I'm a engineer and has done may projects over the years from amps for my home sound system to computer servers, motion detectors and things in-between. One thing I found is although fun, pure DIY isn't always the most cost effective answer. In your case I'd be tempted to by an off the shelf sensor for the rooms and focus my energies on the smart thermostat itself giving it features and abilities not found elsewhere. I use a smart thermostat and smart vents in the home for climate control. Both systems offer temperature sensors running about 30e-35e. Although they do use batteries in 1 yr, never had to change one (uses cr2032 <1e each). Focus on the fun unique parts of your project and shortcut the other parts. I do the same when cooking
-
I'll be happy to beta test the setup when you get it done. :)
Life is killing me
It *will* take a while, I'm quite busy :D don't hold your breath on it, but I will do it. The smartest thermostat I ever saw is no longer in production...
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
-
It *will* take a while, I'm quite busy :D don't hold your breath on it, but I will do it. The smartest thermostat I ever saw is no longer in production...
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
Thank you. In new Orleans we have both hot and cold weather that is partially unpredictable.
Life is killing me...……..
-
I would reccommend my old CDP1802 microprocessor. It does not get any lower power than that, if you can live without power wasters like LEDs or displays. Still, it's now becoming hard to get after a long lifetime and you are probably better off with a modern microcontroller. I think a PIC microcontroller might do it. They cost five bucks or even less and need prctically no additional parts if you pick the right one out of a vast sortiment. It should have a UART to communicate with the Pi, and perhaps A/D converters for the temperature sensor. Also, it should have a power-on reset built in (not all have that), an internal oscillator, and it should be a low power CMOS version. Hint: The operating power of CMOS devices is dependent on the clock frequency, so set the internal oscillator to the lowest value that still cuts the cake for you.
I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
Yea, that was going to be my suggestion too. The current PIC18F series are all ultra low power, I have a couple of 18F4550's and some of the really new 18F24Jxx series too. All of them have built in Analog to Digital, and I2C/USART/SPI serial connections. On top of that, they all have wake on external interrupt line too, so you could code them to go to sleep, attach the ext int logic line to a WiFi unit that can pull the line high when it receives a wake up packet, the PIC would then sample the analog, send the result to the WiFi unit for broadcast, and go back into ultra low power sleep mode. Take a look at this guys channel on YouTube: [Andreas Spiess](https://www.youtube.com/feed/subscriptions/UCu7\_D0o48KbfhpEohoP7YSQ) He does tons of stuff with really low power sensors and WiFi.
-
The microcontroller is extremely expensive: PIC 16F877A-I - P: MCU, PICmicro, 14 KB, 20 MHz, DIL-40 bei reichelt elektronik[^] :)
I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
Microchip do a massive range of different micro controllers, all at different price points. If your in the UK, I usually use these guys to supply my PIC's: [V&U Electronic components LTD](https://vuec.co.uk/) You can also use the Microchip search/match tool to find the perfect PIC you need for your project [Microchip MAPS](https://www.microchip.com/maps/Microcontroller.aspx)
-
I'm a engineer and has done may projects over the years from amps for my home sound system to computer servers, motion detectors and things in-between. One thing I found is although fun, pure DIY isn't always the most cost effective answer. In your case I'd be tempted to by an off the shelf sensor for the rooms and focus my energies on the smart thermostat itself giving it features and abilities not found elsewhere. I use a smart thermostat and smart vents in the home for climate control. Both systems offer temperature sensors running about 30e-35e. Although they do use batteries in 1 yr, never had to change one (uses cr2032 <1e each). Focus on the fun unique parts of your project and shortcut the other parts. I do the same when cooking
My Home control system for heating is easy :-) I wrote very little server code, used an RTL software radio dongle, to find and lock into the 400Mhz radio signal my thermostat in the hallway uses to talk to my central heating boiler, then started to intercept the comms and provide my own smart control from one of my servers. Eventually, I just put an rPI in a box, with the dongle, set up GNU Radio on it to do the intercept, then stuck it on the wall right next to the thermostat. I turned off ALL the auto management features of the thermostat, switched it all to manual, and now it's my box that controls it. Everything else, sensors in the rooms etc was all installed when the house was built (We bought a new build) so all I needed was already in place, I just needed to figure out how to hack it. Most of the honeywell systems communicate on a 400Mhz radio signal, and most RTL SDR dongles can easily scan that range these days.