Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • 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
Brand Logo
  1. Home
  2. General Discussion
  3. Sensor Location

Sensor Location

Scheduled Pinned Locked Moved General Discussion
18 Posts 6 Posters 6.5k Views 3 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.
  • tbowmoT Offline
    tbowmoT Offline
    tbowmo
    Admin
    wrote on last edited by tbowmo
    #2

    I don't think it's possible with nrf modules..

    You have to send out a ping, and receive a pong, then calculate the time it takes to travel back and forth, do some mathematics, and you have the distance.

    However, this assumes that you have 100% control over when the signal is transmitted in both ends, and also when the receivers notify the processor of reception of the signal. And I don't know if this is possible with the NRF24 module (ideally you'll need a CW transmitter for this, to be able to send a short burst). and even then it wouldn't work.

    some small maths on the travel of radio / light waves.
    Radio waves travel with 299792458 m/s that is 299 meter every micro second, or around 30cm every nano second. If we assume that you have 100% control over the radio timing, and we live in a perfect world with no software delays, then in order to have a good resolution, you need to have a clock with a frequency of at least 1Ghz. Then for each tick of the oscilator, your radio signal would have travelled 30cm.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rdevine
      wrote on last edited by
      #3

      With the max distance a signal would travel being 8ft, would the continuous wave method work?

      1 Reply Last reply
      0
      • rvendrameR Offline
        rvendrameR Offline
        rvendrame
        Hero Member
        wrote on last edited by
        #4

        Do you want to measure how much full/empty are the shelves? If yes, maybe the distance sensor may help to you?

        Home Assistant / Vera Plus UI7
        ESP8266 GW + mySensors 2.3.2
        Alexa / Google Home

        1 Reply Last reply
        0
        • R Offline
          R Offline
          rdevine
          wrote on last edited by
          #5

          With ultrasound, will there be issues with the pulse traveling through other objects within the cabinet until the pulse hits the tag?

          BulldogLowellB 1 Reply Last reply
          0
          • R rdevine

            With ultrasound, will there be issues with the pulse traveling through other objects within the cabinet until the pulse hits the tag?

            BulldogLowellB Offline
            BulldogLowellB Offline
            BulldogLowell
            Contest Winner
            wrote on last edited by
            #6

            @rdevine said:

            will there be issues with the pulse traveling through other objects within the cabinet until the pulse hits the tag?

            the sound pulse will reflect off of the first solid object in its path

            1 Reply Last reply
            0
            • R Offline
              R Offline
              rdevine
              wrote on last edited by
              #7

              The goal would be to have hardware on the cabinet that would be able to inventory all objects within the rack. I think ultrasonic would not be applicable in my scenario.

              BulldogLowellB 1 Reply Last reply
              0
              • R rdevine

                The goal would be to have hardware on the cabinet that would be able to inventory all objects within the rack. I think ultrasonic would not be applicable in my scenario.

                BulldogLowellB Offline
                BulldogLowellB Offline
                BulldogLowell
                Contest Winner
                wrote on last edited by
                #8

                @rdevine said:

                would be able to inventory all objects within the rack.

                perhaps contact sensors placed underneath the location of each 'object'

                A friend of mine owns a company that is in essence an RFID toolbox sold to aircraft maintenance industry. The system is used to make certain no tools are left inside the engines and other critical spaces in and around an aircraft. His first sale was to Sikorsky Helicopter, and he is wildly growing!

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  rdevine
                  wrote on last edited by
                  #9

                  That is goal. I want to place a 'tag' on each device that goes into the cabinet. Not only do i want to know the object is within the cabinet but i need to know where its mounted within the cabinet. When the cabinet is scanned for objects it would return what objects are in the cabinet and their location on the Y axis only. Im only concerned about the objects height within the cabinet.

                  BulldogLowellB 1 Reply Last reply
                  0
                  • R rdevine

                    That is goal. I want to place a 'tag' on each device that goes into the cabinet. Not only do i want to know the object is within the cabinet but i need to know where its mounted within the cabinet. When the cabinet is scanned for objects it would return what objects are in the cabinet and their location on the Y axis only. Im only concerned about the objects height within the cabinet.

                    BulldogLowellB Offline
                    BulldogLowellB Offline
                    BulldogLowell
                    Contest Winner
                    wrote on last edited by
                    #10

                    @rdevine said:

                    Im only concerned about the objects height within the cabinet.

                    that will be a challenge here in MySensors world...

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      rickmontana83
                      wrote on last edited by
                      #11

                      I would think RFID pads on each shelf surface is your best bet; but that's likely to be cost prohibitive (you'll either need expensive high-range scanners or lots of not-so-cheap low range scanners).

                      Honestly I don't really see the point of going to all that bother. Is there any way to modify the design to something a little less automated? Perhaps one scanner per shelf that you have to wave each item by on checkout / checkin? My local library does something like that for self checkout.

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        rdevine
                        wrote on last edited by
                        #12

                        I guess it would make more sense if I explained the complete use case.

                        I have a plant store. Within the store I have 30 cabinets. The cabinets hold trays of plants. The plant trays differ in size and they slide in and out of the cabinets. There are 50 slots within the cabinet. A tray can slide within each cabinet at any of those slots. I want to place a sensor on one of the trays and when i move it in and out of the cabinet it will update my database and let me know where it is. The trays will be constantly moving from cabinet to cabinet depending on where the plant is in its growth cycle.

                        Once I am able to determine the distance the tray is from the reader on the cabinet I can associate the distance to match the number labeling system on the cabinet so i will know exactly what slot the tray is in.

                        Automation is the complete goal.

                        Moshe LivneM 1 Reply Last reply
                        0
                        • R rdevine

                          I guess it would make more sense if I explained the complete use case.

                          I have a plant store. Within the store I have 30 cabinets. The cabinets hold trays of plants. The plant trays differ in size and they slide in and out of the cabinets. There are 50 slots within the cabinet. A tray can slide within each cabinet at any of those slots. I want to place a sensor on one of the trays and when i move it in and out of the cabinet it will update my database and let me know where it is. The trays will be constantly moving from cabinet to cabinet depending on where the plant is in its growth cycle.

                          Once I am able to determine the distance the tray is from the reader on the cabinet I can associate the distance to match the number labeling system on the cabinet so i will know exactly what slot the tray is in.

                          Automation is the complete goal.

                          Moshe LivneM Offline
                          Moshe LivneM Offline
                          Moshe Livne
                          Hero Member
                          wrote on last edited by
                          #13

                          @rdevine I am now researching rfid and and @rickmontana83 said the long range ones are a bit dear but they are an option.
                          Here is a summery of what I learned by now:
                          there are ultra cheap rfid readers and tags in the 125 or 13.6 band. if you place a reader behind each slot and can be sure the tag will be within 6cm of the reader this is a cost effective option, as the tags are cheap and passive and a reader costs about 5$. you still have to wire, process, etc.
                          The other option is to use middle range readers with active tags and triangulation. these can read pretty long distances but each reader is ~200$ and you need 3 of them. I think you must use active tags which are a bit bigger and run on batteries although they are extremely economical and can run for years.
                          All of this is only theoretical, so take it with a grain of salt.

                          another option would be to have qr or barcode readers behind each slot. did you think about this option? not sure its suitable for arduino but you can now buy very cheap cellphones that can read barcodes from impressive distances. just options....

                          Moshe LivneM 1 Reply Last reply
                          0
                          • Moshe LivneM Moshe Livne

                            @rdevine I am now researching rfid and and @rickmontana83 said the long range ones are a bit dear but they are an option.
                            Here is a summery of what I learned by now:
                            there are ultra cheap rfid readers and tags in the 125 or 13.6 band. if you place a reader behind each slot and can be sure the tag will be within 6cm of the reader this is a cost effective option, as the tags are cheap and passive and a reader costs about 5$. you still have to wire, process, etc.
                            The other option is to use middle range readers with active tags and triangulation. these can read pretty long distances but each reader is ~200$ and you need 3 of them. I think you must use active tags which are a bit bigger and run on batteries although they are extremely economical and can run for years.
                            All of this is only theoretical, so take it with a grain of salt.

                            another option would be to have qr or barcode readers behind each slot. did you think about this option? not sure its suitable for arduino but you can now buy very cheap cellphones that can read barcodes from impressive distances. just options....

                            Moshe LivneM Offline
                            Moshe LivneM Offline
                            Moshe Livne
                            Hero Member
                            wrote on last edited by
                            #14

                            @rdevine and yet another option, maybe the cheapest if you are a capable programmer, is to place HD camera in front of each cabinet and process barcodes from the snapshots taken by the cameras. will be very accurate, fast and can be handled by one computer.

                            R 1 Reply Last reply
                            0
                            • Moshe LivneM Moshe Livne

                              @rdevine and yet another option, maybe the cheapest if you are a capable programmer, is to place HD camera in front of each cabinet and process barcodes from the snapshots taken by the cameras. will be very accurate, fast and can be handled by one computer.

                              R Offline
                              R Offline
                              rickmontana83
                              wrote on last edited by
                              #15

                              @Moshe-Livne
                              Teaching a computer to see is one of he hardest problems computer science has yet tried to solve. I'd suggest giving this a miss if you value your sanity. ;-)

                              Not to be too snarky, but a Mechanical Turk might be the most elegant solution here. There are some things for which computers aren't really that well suited. (I know, I know... I'll turn in my nerd card and see myself out...)

                              Moshe LivneM 1 Reply Last reply
                              0
                              • R rickmontana83

                                @Moshe-Livne
                                Teaching a computer to see is one of he hardest problems computer science has yet tried to solve. I'd suggest giving this a miss if you value your sanity. ;-)

                                Not to be too snarky, but a Mechanical Turk might be the most elegant solution here. There are some things for which computers aren't really that well suited. (I know, I know... I'll turn in my nerd card and see myself out...)

                                Moshe LivneM Offline
                                Moshe LivneM Offline
                                Moshe Livne
                                Hero Member
                                wrote on last edited by
                                #16

                                @rickmontana83 if the camera is fixed and the cabinets and shelves are fixed and we are talking barcode this is not too hard. if any of the above is not true we are into a completely different game....basically you only mark the areas in which barcodes can appear and there are some very good libraries that can "read" barcodes from photos. not a 5 min work but not a 2 years project as well. and dirt cheap. and no batteries or wiring to look after.

                                R 1 Reply Last reply
                                0
                                • Moshe LivneM Moshe Livne

                                  @rickmontana83 if the camera is fixed and the cabinets and shelves are fixed and we are talking barcode this is not too hard. if any of the above is not true we are into a completely different game....basically you only mark the areas in which barcodes can appear and there are some very good libraries that can "read" barcodes from photos. not a 5 min work but not a 2 years project as well. and dirt cheap. and no batteries or wiring to look after.

                                  R Offline
                                  R Offline
                                  rickmontana83
                                  wrote on last edited by
                                  #17

                                  @Moshe-Livne Touché. I still think it'd be more trouble than it was worth, but your constraints make it a much more reasonable possibility.

                                  Moshe LivneM 1 Reply Last reply
                                  0
                                  • R rickmontana83

                                    @Moshe-Livne Touché. I still think it'd be more trouble than it was worth, but your constraints make it a much more reasonable possibility.

                                    Moshe LivneM Offline
                                    Moshe LivneM Offline
                                    Moshe Livne
                                    Hero Member
                                    wrote on last edited by
                                    #18

                                    @rickmontana83 have a look at http://zbar.sourceforge.net/ for example...

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


                                    11

                                    Online

                                    11.7k

                                    Users

                                    11.2k

                                    Topics

                                    113.0k

                                    Posts


                                    Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • MySensors
                                    • OpenHardware.io
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular