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. Hardware
  3. Current Sensing?

Current Sensing?

Scheduled Pinned Locked Moved Hardware
111 Posts 12 Posters 30.7k Views 10 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.
  • gohanG gohan

    @Samuel235
    My bet is there isn't one :D

    S Offline
    S Offline
    Samuel235
    Hardware Contributor
    wrote on last edited by
    #64

    @gohan - I'd be pretty shocked if there was when it was made this quick. Either way, its very nice and a quick turn around.

    MySensors 2.1.1
    Controller - OpenHAB (Virtual Machine)
    Gateway - Arduino Mega MQTT Gateway W5100

    YveauxY 1 Reply Last reply
    0
    • S Samuel235

      @gohan - I'd be pretty shocked if there was when it was made this quick. Either way, its very nice and a quick turn around.

      YveauxY Offline
      YveauxY Offline
      Yveaux
      Mod
      wrote on last edited by
      #65

      @Samuel235 do not underestimate the @scalz man!

      http://yveaux.blogspot.nl

      S 1 Reply Last reply
      1
      • YveauxY Yveaux

        @Samuel235 do not underestimate the @scalz man!

        S Offline
        S Offline
        Samuel235
        Hardware Contributor
        wrote on last edited by
        #66

        @Yveaux - Oh, i know what this guy is capable of, at no point do i underestimate him. I'm actually very jealous ;)

        MySensors 2.1.1
        Controller - OpenHAB (Virtual Machine)
        Gateway - Arduino Mega MQTT Gateway W5100

        1 Reply Last reply
        1
        • scalzS Offline
          scalzS Offline
          scalz
          Hardware Contributor
          wrote on last edited by
          #67

          thx guys :joy:

          @Samuel235
          in fact i'm jealous of you too as you're studying electronics, looks cool ;)
          I've only designed the pcb for the moment, electronics in my thing is air wired, i don't remember how this soldering style is named??
          so this looks like this
          0_1489094889444_20170309_220932.jpg
          i'll check a few things for tomorrow, and also would like to try sensing a few others led colors and i'll post, no problem. I've been able to go up to 110hz though, then it was fluctuating too much (40hz was because i forgot to remove a capa on the signal generator side).

          S 1 Reply Last reply
          1
          • gohanG gohan

            @Samuel235
            My bet is there isn't one :D

            scalzS Offline
            scalzS Offline
            scalz
            Hardware Contributor
            wrote on last edited by scalz
            #68

            @gohan said in Current Sensing?:

            @Samuel235
            My bet is there isn't one :D

            @Samuel235 said in Current Sensing?:

            @gohan - I'd be pretty shocked if there was when it was made this quick. Either way, its very nice and a quick turn around.

            rooo i didn't pay attention! So who pay for the bet :joy: but that's gohan which is betting, right :stuck_out_tongue:

            0_1489095803073_myspulse.png
            So there is one, which should be very low power, afew uA (compared to the 0.4mA min of the lm393), and cheap. I just need to change a few routes, very quick.

            I told you ;) (i'm kidding of course)

            gohanG 1 Reply Last reply
            1
            • scalzS scalz

              @gohan said in Current Sensing?:

              @Samuel235
              My bet is there isn't one :D

              @Samuel235 said in Current Sensing?:

              @gohan - I'd be pretty shocked if there was when it was made this quick. Either way, its very nice and a quick turn around.

              rooo i didn't pay attention! So who pay for the bet :joy: but that's gohan which is betting, right :stuck_out_tongue:

              0_1489095803073_myspulse.png
              So there is one, which should be very low power, afew uA (compared to the 0.4mA min of the lm393), and cheap. I just need to change a few routes, very quick.

              I told you ;) (i'm kidding of course)

              gohanG Offline
              gohanG Offline
              gohan
              Mod
              wrote on last edited by
              #69

              @scalz
              the PCB is only designed, so it was't actually there inside the sensor, so my bed still stands :D

              1 Reply Last reply
              1
              • scalzS Offline
                scalzS Offline
                scalz
                Hardware Contributor
                wrote on last edited by scalz
                #70

                ahah, well played ;)

                1 Reply Last reply
                1
                • S Offline
                  S Offline
                  Samuel235
                  Hardware Contributor
                  wrote on last edited by
                  #71

                  No, you owe us all money! STAND BY YOUR BET! xD

                  I like it @scalz - you're approach is much better for low power modes, much better than mine. I see that the comparator is not needed for such application, i'm going that route because its the 'done' way. However, you're style is much better for battery powered nodes which will naturally attract people.

                  I'm really struggling to get to grips with KiCAD and i'm starting to give up after just one footprint. This thing would have been hours ago if i just used eagle.

                  The style is more 'inline' (not the technical term, but that is how i know it). What photodiode/resistor are you using? Most should pick up quite a decent range of wavelengths on the blinking LED.

                  MySensors 2.1.1
                  Controller - OpenHAB (Virtual Machine)
                  Gateway - Arduino Mega MQTT Gateway W5100

                  1 Reply Last reply
                  0
                  • scalzS scalz

                    thx guys :joy:

                    @Samuel235
                    in fact i'm jealous of you too as you're studying electronics, looks cool ;)
                    I've only designed the pcb for the moment, electronics in my thing is air wired, i don't remember how this soldering style is named??
                    so this looks like this
                    0_1489094889444_20170309_220932.jpg
                    i'll check a few things for tomorrow, and also would like to try sensing a few others led colors and i'll post, no problem. I've been able to go up to 110hz though, then it was fluctuating too much (40hz was because i forgot to remove a capa on the signal generator side).

                    S Offline
                    S Offline
                    Samuel235
                    Hardware Contributor
                    wrote on last edited by
                    #72

                    @scalz - The general photodiode has a range of "Wavelength range (S10%) 400 nm to 1100 nm (SFH
                    213)", quoted from a datasheet here: http://www.osram-os.com/Graphics/XPic5/00101689_0.pdf. So this means that we should be good for a fair few different LED colours.

                    MySensors 2.1.1
                    Controller - OpenHAB (Virtual Machine)
                    Gateway - Arduino Mega MQTT Gateway W5100

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      Samuel235
                      Hardware Contributor
                      wrote on last edited by
                      #73

                      @scalz - I wouldn't be jealous of me, my school is pretty bad to be honest with you. But it gets me a degree! I'm actually working/studying in the robotics field, so not just electronics :) We have a PCB router at school and I'm trying to get permission to use this for our projects here too, only for prototyping ofc. Finished boards will be ordered from a board house for a more professional feel, but it allows me to get an idea of the size of board we can get our designs down too and such.

                      I've also given up with KiCAD for now, it feels so unprofessional to get libraries and such made. Individual addons/programs inside of KiCAD to do different aspects just feels so clunky to me right now, eagle has my attention until i get my hands on solidworks PCB.

                      MySensors 2.1.1
                      Controller - OpenHAB (Virtual Machine)
                      Gateway - Arduino Mega MQTT Gateway W5100

                      1 Reply Last reply
                      1
                      • S Offline
                        S Offline
                        Samuel235
                        Hardware Contributor
                        wrote on last edited by
                        #74

                        Here are the renders for my enclosure, will be printing in the morning and will report back with some more progress photos.

                        I did try to get the font into the same font as we use for the official logos of MySensors but the font really didn't correspond with solidworks, there are missing faces and lines all over the generated font and therefor it wasn't an option. If anyone knows a work around or something i could do to make it look remotely like the logo then please inform me. At some point i may attempt to put our little man logo on there instead of the opensource hardware logo, maybe.

                        I have designed the cable inlet with ethernet cable in mind, that may change too, not sure yet. I'm going for the cheap and locking/latching RJ45 rather than something that could slip out of socket as most of us use our electric cupboards for other uses as well such as cloakrooms for coats and such in the UK.

                        0_1489182538397_View1.JPG
                        1_1489182538397_View2.JPG
                        2_1489182538397_View3.JPG
                        3_1489182538397_View4.JPG
                        4_1489182538397_View5.JPG
                        5_1489182538397_View6.JPG
                        6_1489182538397_View7.JPG
                        7_1489182538397_View8.JPG

                        Would anyone like to see anything on here that i haven't thought about? I'm open to criticism.

                        MySensors 2.1.1
                        Controller - OpenHAB (Virtual Machine)
                        Gateway - Arduino Mega MQTT Gateway W5100

                        1 Reply Last reply
                        2
                        • scalzS Offline
                          scalzS Offline
                          scalz
                          Hardware Contributor
                          wrote on last edited by
                          #75

                          cool
                          regarding your print, i think it's better to extrude the text, i'm not sure you'll get a good rendering like this..
                          same thing for the logo.. i guess you'll print it facing to the bed, maybe that won't look so great too.

                          S 1 Reply Last reply
                          0
                          • scalzS scalz

                            cool
                            regarding your print, i think it's better to extrude the text, i'm not sure you'll get a good rendering like this..
                            same thing for the logo.. i guess you'll print it facing to the bed, maybe that won't look so great too.

                            S Offline
                            S Offline
                            Samuel235
                            Hardware Contributor
                            wrote on last edited by
                            #76

                            @scalz - I'm not keen on the extruded text look tbh, i'm testing this format but my printer is pretty good with overhangs and thats why i'm taking my chance on the logo on top. It will be facing the bed and so we shall see how it turns out. Its not the end of the world if it doesn't look pretty straight away but i'm hoping its acceptable :)

                            MySensors 2.1.1
                            Controller - OpenHAB (Virtual Machine)
                            Gateway - Arduino Mega MQTT Gateway W5100

                            1 Reply Last reply
                            0
                            • scalzS Offline
                              scalzS Offline
                              scalz
                              Hardware Contributor
                              wrote on last edited by
                              #77

                              i know for the extruded text, me too though. but i think it's more in general, 3d printing, it is more readable. but you can try, sure it won't take so much time and maybe that'll work, can't wait to see how it looks now ;)

                              S 1 Reply Last reply
                              0
                              • scalzS scalz

                                i know for the extruded text, me too though. but i think it's more in general, 3d printing, it is more readable. but you can try, sure it won't take so much time and maybe that'll work, can't wait to see how it looks now ;)

                                S Offline
                                S Offline
                                Samuel235
                                Hardware Contributor
                                wrote on last edited by
                                #78

                                @scalz - I'll print with 0.1mm layer height to give me the best chance possible. They're not meant to be obvious features, they're only small details, 0.5mm indents. So, Fingers crossed.

                                MySensors 2.1.1
                                Controller - OpenHAB (Virtual Machine)
                                Gateway - Arduino Mega MQTT Gateway W5100

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  mwalker
                                  wrote on last edited by
                                  #79

                                  These look great, I have been working on something similar, for now just using an LM393 module with a phototransistor (or it could be a photodiode, I'm not sure). Initial experiments with a light dependent resistor LM393 module were not successful, its ramp up time was too long for what turned out to be the 15ms pulse time on my electricity meter (3200 pulses per kWh).

                                  At present I am just using Blu-Tack to provide light isolation (my meter is mounted outside on the front porch) but I was looking at a similar enclosure. I have ordered some Velcro dots off eBay for mounting and have been looking at some enclosures but the ones I see here look much better than anything I have found so far.

                                  @Samuel235 with your design I was thinking it might make more sense mechanically if the wire is hanging down to have it exiting the enclosure as close as possible to the plane of the mounting point so that as much of the force it is exerting is as a shear which Velcro is good at holding.

                                  I have also ordered some other parts to try replacing the LDR on my original LM393 module, based on a combination of local availability, price, and wavelength and angular sensitivity. The two I choose are the SFH213 photodiode (wide wavelength, 10º angular) and the SFH309 phototransistor (full spectrum, 24º angular). I'm just getting back into electronics after many years so I still have to pull out the soldering iron and get a workbench set up to try these out.

                                  S 1 Reply Last reply
                                  0
                                  • M mwalker

                                    These look great, I have been working on something similar, for now just using an LM393 module with a phototransistor (or it could be a photodiode, I'm not sure). Initial experiments with a light dependent resistor LM393 module were not successful, its ramp up time was too long for what turned out to be the 15ms pulse time on my electricity meter (3200 pulses per kWh).

                                    At present I am just using Blu-Tack to provide light isolation (my meter is mounted outside on the front porch) but I was looking at a similar enclosure. I have ordered some Velcro dots off eBay for mounting and have been looking at some enclosures but the ones I see here look much better than anything I have found so far.

                                    @Samuel235 with your design I was thinking it might make more sense mechanically if the wire is hanging down to have it exiting the enclosure as close as possible to the plane of the mounting point so that as much of the force it is exerting is as a shear which Velcro is good at holding.

                                    I have also ordered some other parts to try replacing the LDR on my original LM393 module, based on a combination of local availability, price, and wavelength and angular sensitivity. The two I choose are the SFH213 photodiode (wide wavelength, 10º angular) and the SFH309 phototransistor (full spectrum, 24º angular). I'm just getting back into electronics after many years so I still have to pull out the soldering iron and get a workbench set up to try these out.

                                    S Offline
                                    S Offline
                                    Samuel235
                                    Hardware Contributor
                                    wrote on last edited by
                                    #80

                                    @mwalker - My design has the cable coming out where it does because that is where the PCB plane is. Mine is relatively thicker than @scalz's, not 100% sure the technical details of his but my detector is not right on the surface, it has a cavity to make it nice and dark for that sensor.

                                    My design implements a LM393 and a photodiode, which i'm sure you already know, is designed for high speed detections and fast saturation of the diode and fast release back to normal. However, my meter is not one that blinks fast (i think) and i don't have a signal generator at the moment so i wouldn't be able to test down to that speed. The photodiode has an effective window shown below:

                                    0_1489212238933_wavelength.png

                                    So, i think that my design may suit your use, lets see :)

                                    MySensors 2.1.1
                                    Controller - OpenHAB (Virtual Machine)
                                    Gateway - Arduino Mega MQTT Gateway W5100

                                    1 Reply Last reply
                                    0
                                    • S Offline
                                      S Offline
                                      Samuel235
                                      Hardware Contributor
                                      wrote on last edited by
                                      #81

                                      1_1489219383358_IMG_9145.JPG 0_1489219383356_IMG_9144.JPG

                                      I'm pretty impressed with how it handeling that overhang on the logo considering there wasn't much vertical space under it to the bed i expected it to droop down to the bed. I like it! Ignore the little cunk out at the cable entry part, my glue held it too hard on the bed. The cable grip is a little too small, reprinting it with a more pronounced grip now (Didn't want it too large as it would damage the cable, but its not enough at the moment).

                                      MySensors 2.1.1
                                      Controller - OpenHAB (Virtual Machine)
                                      Gateway - Arduino Mega MQTT Gateway W5100

                                      1 Reply Last reply
                                      1
                                      • scalzS Offline
                                        scalzS Offline
                                        scalz
                                        Hardware Contributor
                                        wrote on last edited by scalz
                                        #82

                                        it didn't slice the text??

                                        1 Reply Last reply
                                        0
                                        • M Offline
                                          M Offline
                                          mwalker
                                          wrote on last edited by
                                          #83

                                          It looks good @Samuel235, having the detector recessed in a cavity in order to reduce the impact of ambient light isn't something that I had considered, I guess because I was mainly thinking about an off the shelf enclosure, or repurposing some other type of container, i.e. this, but I like these designs a lot better.

                                          I was able to use a cheap logic analyser with sigrok to work out the pulse time on my meter, and I am in the midst of designing a test rig using WS2812 led strip and a separate microcontroller in order to be able to test my pulse detection code when more of the LM393 modules arrive. One location I need to use this system has ten meters, and another has nine meters, so I need to have a good test rig to make sure that my system won't be dropping pulses.

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


                                          16

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 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