Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Question for you electronic DIY people

Question for you electronic DIY people

Scheduled Pinned Locked Moved The Lounge
hardwarequestionc++iot
32 Posts 15 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D den2k88

    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

    C Offline
    C Offline
    CodeWraith
    wrote on last edited by
    #3

    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.

    D P 2 Replies Last reply
    0
    • D den2k88

      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

      M Offline
      M Offline
      markkuk
      wrote on last edited by
      #4

      Check out RuuviTag[^]. It's open hardware so you can build your own[^] if you really want.

      D 1 Reply Last reply
      0
      • C CodeWraith

        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.

        D Offline
        D Offline
        den2k88
        wrote on last edited by
        #5

        Good. I will look if I can find some component that goes from UART to Bluetooth or similar. Thanks!

        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

        OriginalGriffO C 2 Replies Last reply
        0
        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

          I worked with SparkFun ESP8266 IoT board and with the TMP102... It gives you a WiFi connected, fully programmable thermostat (and more)... If you are using a rechargeable battery it may help, but thermostat (it runs all the time, so no sleeping) can be energy consuming... Probably the best way is to make battery replaceable (using charged spare), by adding a flat Lithium-Ion and a cell (like CR2032) to backup...

          "The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018

          D Offline
          D Offline
          den2k88
          wrote on last edited by
          #6

          Batteries will be replaceable. The thermostat will be powered by line, only the satellites will be powered by batteries. Also, the satellites need to cycle only every 5 minutes tops, so no big problem.

          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

          1 Reply Last reply
          0
          • M markkuk

            Check out RuuviTag[^]. It's open hardware so you can build your own[^] if you really want.

            D Offline
            D Offline
            den2k88
            wrote on last edited by
            #7

            Nice... a bit costly and over my needs though.

            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

            1 Reply Last reply
            0
            • D den2k88

              Good. I will look if I can find some component that goes from UART to Bluetooth or similar. Thanks!

              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

              C Offline
              C Offline
              CodeWraith
              wrote on last edited by
              #8

              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.

              D T 2 Replies Last reply
              0
              • D den2k88

                Good. I will look if I can find some component that goes from UART to Bluetooth or similar. Thanks!

                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

                OriginalGriffO Offline
                OriginalGriffO Offline
                OriginalGriff
                wrote on last edited by
                #9

                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!

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                D 1 Reply Last reply
                0
                • C CodeWraith

                  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.

                  D Offline
                  D Offline
                  den2k88
                  wrote on last edited by
                  #10

                  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

                  C 1 Reply Last reply
                  0
                  • OriginalGriffO OriginalGriff

                    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!

                    D Offline
                    D Offline
                    den2k88
                    wrote on last edited by
                    #11

                    Will do when I manage to fight this boss ;P

                    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

                    1 Reply Last reply
                    0
                    • D den2k88

                      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

                      C Offline
                      C Offline
                      CodeWraith
                      wrote on last edited by
                      #12

                      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.

                      P 1 Reply Last reply
                      0
                      • D den2k88

                        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

                        M Offline
                        M Offline
                        Mark_Wallace
                        wrote on last edited by
                        #13

                        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!

                        1 Reply Last reply
                        0
                        • D den2k88

                          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

                          C Offline
                          C Offline
                          Clumpco
                          wrote on last edited by
                          #14

                          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/)

                          D 1 Reply Last reply
                          0
                          • D den2k88

                            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

                            L Offline
                            L Offline
                            L Braun
                            wrote on last edited by
                            #15

                            Sorry, it is in german ... Homematic DIY-Projekt: Thermometer und Hydrometer – fertige Platine im Eigenbau › technikkram.net[^]

                            D 1 Reply Last reply
                            0
                            • C Clumpco

                              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/)

                              D Offline
                              D Offline
                              den2k88
                              wrote on last edited by
                              #16

                              Woah, thanks a lot!

                              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

                              1 Reply Last reply
                              0
                              • L L Braun

                                Sorry, it is in german ... Homematic DIY-Projekt: Thermometer und Hydrometer – fertige Platine im Eigenbau › technikkram.net[^]

                                D Offline
                                D Offline
                                den2k88
                                wrote on last edited by
                                #17

                                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

                                1 Reply Last reply
                                0
                                • D den2k88

                                  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

                                  A Offline
                                  A Offline
                                  Andre Pereira
                                  wrote on last edited by
                                  #18

                                  The cheapest solution while maintaining low power is probably an Nordic nr51822. You can get them dirt cheap, have BLE included and an ARM M-0. Combine that with an ST-Link and Visual Micro and you're ready to get some firmware working on a tiny chip.

                                  1 Reply Last reply
                                  0
                                  • C CodeWraith

                                    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.

                                    T Offline
                                    T Offline
                                    Tiger12506
                                    wrote on last edited by
                                    #19

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

                                    1 Reply Last reply
                                    0
                                    • D den2k88

                                      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

                                      S Offline
                                      S Offline
                                      Slow Eddie
                                      wrote on last edited by
                                      #20

                                      I'll be happy to beta test the setup when you get it done. :)

                                      Life is killing me

                                      D 1 Reply Last reply
                                      0
                                      • D den2k88

                                        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

                                        M Offline
                                        M Offline
                                        MSBassSinger
                                        wrote on last edited by
                                        #21

                                        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.

                                        1 Reply Last reply
                                        0
                                        • D den2k88

                                          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

                                          S Offline
                                          S Offline
                                          sasadler
                                          wrote on last edited by
                                          #22

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

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups