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. Pro Micro Hookup and Code

Pro Micro Hookup and Code

Scheduled Pinned Locked Moved Hardware
22 Posts 8 Posters 18.7k Views 5 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 Offline
    D Offline
    den2k
    wrote on last edited by
    #1

    How and where do I change the default PINS so I can hook up a Pro Micro (not Pro Mini)?

    SparkmanS 1 Reply Last reply
    0
    • D den2k

      How and where do I change the default PINS so I can hook up a Pro Micro (not Pro Mini)?

      SparkmanS Offline
      SparkmanS Offline
      Sparkman
      Hero Member
      wrote on last edited by
      #2

      @den2k The pins to hook-up a NRF24L01+ to the Pro Micro? Based on the pinout here: https://learn.sparkfun.com/tutorials/pro-micro--fio-v3-hookup-guide/hardware-overview-pro-micro, it looks like SCK would go to pin 15, MOSI to pin 16, MISO to pin 14. CE can still go to pin 9 and CS to pin 10. Nothing would need to change in the code if using those pins. IRQ is not required so you can leave that disconnected.

      Cheers
      Al

      1 Reply Last reply
      0
      • D Offline
        D Offline
        den2k
        wrote on last edited by
        #3

        I am trying to program a Serial Gateway using the Pro Micro.

        I'm back to basics. Thought I had the wiring down. I've followed the sparkfun tutorials to hookup the radio. but I don't think this entirely matches the configuration for MySensors unless I'm mistaken.

        Reconnecting everything. Nothing yet still seems to work. Will keep trying...

        Thanks.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MartinP
          wrote on last edited by
          #4

          I'm using a pro Micro as serial gateway and sensor with the 'standard' pin configuration.
          @den2k Do you have more than one Pro Micro and NRF24L01+ to try with?
          Do you use the serial gateway sketch without modifications?
          What do you get in the serial output when starting the gateway?

          Good luck
          Martin

          1 Reply Last reply
          0
          • D Offline
            D Offline
            den2k
            wrote on last edited by
            #5

            Hi Martin,
            this will sound stupid, but what is the standard pin configuration you are using on the Pro Micro to connect to the nRF24L01+? Or point me to the pin configuration you are using.

            I think I've tried them all. I do have a different setup and thought I could modify the code to match... probably getting to far ahead of myself.... :)

            1 Reply Last reply
            0
            • D Offline
              D Offline
              den2k
              wrote on last edited by den2k
              #6

              This is my hookup. Am I doing something completely wrong?

              Pro Micro - 8MHz, 3.3V at VCC

              SCLK - 15
              MISO - 14
              MOSI - 16
              CSN - 10
              CE - 9
              VCC - VCC (3.3V)
              GND - GND

              upload-44ce7e15-01a9-4ffa-bb1b-951e49497293

              SparkmanS 1 Reply Last reply
              0
              • D den2k

                This is my hookup. Am I doing something completely wrong?

                Pro Micro - 8MHz, 3.3V at VCC

                SCLK - 15
                MISO - 14
                MOSI - 16
                CSN - 10
                CE - 9
                VCC - VCC (3.3V)
                GND - GND

                upload-44ce7e15-01a9-4ffa-bb1b-951e49497293

                SparkmanS Offline
                SparkmanS Offline
                Sparkman
                Hero Member
                wrote on last edited by
                #7

                @den2k All looks correct assuming it's a 3.3V unit and Vcc is at 3.3V. Can you upload the sketch to it without the radio connected to it and does it show a serial output then?

                Cheers
                Al

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  den2k
                  wrote on last edited by den2k
                  #8

                  While it seems everyone else can get their Pro Micro's to work. I continue to ....

                  upload-192cfd32-8766-46a6-b7b2-738b675a0d9c

                  This is what I see.

                  1. I have the hookup as mentioned above.
                  2. I uploaded the library/MySensors/SerialGateway.ino sketch to the Pro Micro
                  3. I see nothing on the COM16 port.

                  I have several 8Mhz Pro Micro's and have tried different ones. Don't work. I bought these on Ebay. Very cheap. I also installed the SparkFun Pro Micro drivers, etc. as you can see in my Device Manager.

                  Other Sketches work. I've even had RF24 sketches working using the same nRF24 radios and pro micros. I believe it is not hardware, although can never be sure.

                  SparkmanS 1 Reply Last reply
                  0
                  • D den2k

                    While it seems everyone else can get their Pro Micro's to work. I continue to ....

                    upload-192cfd32-8766-46a6-b7b2-738b675a0d9c

                    This is what I see.

                    1. I have the hookup as mentioned above.
                    2. I uploaded the library/MySensors/SerialGateway.ino sketch to the Pro Micro
                    3. I see nothing on the COM16 port.

                    I have several 8Mhz Pro Micro's and have tried different ones. Don't work. I bought these on Ebay. Very cheap. I also installed the SparkFun Pro Micro drivers, etc. as you can see in my Device Manager.

                    Other Sketches work. I've even had RF24 sketches working using the same nRF24 radios and pro micros. I believe it is not hardware, although can never be sure.

                    SparkmanS Offline
                    SparkmanS Offline
                    Sparkman
                    Hero Member
                    wrote on last edited by
                    #9

                    @den2k Can you post a link to the exact ones you bought?

                    Cheers
                    Al

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      den2k
                      wrote on last edited by
                      #10

                      http://www.ebay.com/itm/301613131022?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        MartinP
                        wrote on last edited by
                        #11

                        @den2k I have mine pro micro connected the same way, but i have a 3.3v regulator to the radio.
                        I don't know why but i guess i have experimented with both 5v and 3.3v so it came along when shifting the Arduino.

                        Sorry i cant help more but i honestly have no idea how to go forth.

                        1 Reply Last reply
                        0
                        • NeverDieN Offline
                          NeverDieN Offline
                          NeverDie
                          Hero Member
                          wrote on last edited by NeverDie
                          #12

                          You might either have a short, a bad solder connection, or a bad chip. To test, try manually setting each individual pin you're using high and low and confirm that's the voltage being seen at the pin with your voltmeter.

                          1 Reply Last reply
                          0
                          • F Offline
                            F Offline
                            Fabien
                            wrote on last edited by
                            #13

                            I have 2 pro micro (5V) and it doesn't work for me too. I try to change pin but I read somewhere there's a bad interpretation between ATmega pins and arduino pins standard with cheap chinese copy. I didn't investigate more and I switch to nano.

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

                              How are you powering arduino + radio? Usb into arduino (5V) and step-down or regulator 3.3V to radio?
                              Cheap mobile chargers don't provide good power conditions and usually radio fails.

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

                              1 Reply Last reply
                              0
                              • D Offline
                                D Offline
                                den2k
                                wrote on last edited by
                                #15

                                I purchased the 3.3v version of the pro micros so I have 3.3v coming out of VCC. I measured with a voltage meter to make sure. So I don't use any voltage regulator coming out of the VCC. I've tried with different pro micros from the same batch. Hmmm.

                                If you have a Pro Micro that is running at 16mHz the output from the VCC line to power the radio is 5 volts. You need to step down to 3.3v to the radio.

                                But I'm using batteries so don't want an extra regulatory taking up power in between.

                                Hmm.

                                NeverDieN 1 Reply Last reply
                                0
                                • D den2k

                                  I purchased the 3.3v version of the pro micros so I have 3.3v coming out of VCC. I measured with a voltage meter to make sure. So I don't use any voltage regulator coming out of the VCC. I've tried with different pro micros from the same batch. Hmmm.

                                  If you have a Pro Micro that is running at 16mHz the output from the VCC line to power the radio is 5 volts. You need to step down to 3.3v to the radio.

                                  But I'm using batteries so don't want an extra regulatory taking up power in between.

                                  Hmm.

                                  NeverDieN Offline
                                  NeverDieN Offline
                                  NeverDie
                                  Hero Member
                                  wrote on last edited by NeverDie
                                  #16

                                  @den2k said:

                                  I purchased the 3.3v version of the pro micros so I have 3.3v coming out of VCC. I measured with a voltage meter to make sure. So I don't use any voltage regulator coming out of the VCC. I've tried with different pro micros from the same batch. Hmmm.

                                  If you have a Pro Micro that is running at 16mHz the output from the VCC line to power the radio is 5 volts. You need to step down to 3.3v to the radio.

                                  But I'm using batteries so don't want an extra regulatory taking up power in between.

                                  Hmm.

                                  So, assuming your battery voltage is less than or equal to 3.3v, you would connect it into Vcc, not RAW. Is that what you're doing? Otherwise, you'll be getting an unwanted voltage drop, and that may be the reason your radio isn't working.

                                  Also, supplied battery voltage goes down as current drawn goes up, due to internal resistance of the battery. You could simulate by drawing worst case current from the battery and measure the voltage it supplies at that current.

                                  1 Reply Last reply
                                  0
                                  • D Offline
                                    D Offline
                                    den2k
                                    wrote on last edited by den2k
                                    #17

                                    Thanks NeverDie. I feel like that now as I plug away...

                                    I 've got the serial gateway plugged into the PC for now, so I have a stable 5V supply and a stable 3.3V supply to the nRF24 radio. So my issue shouldn't be the voltage yet.

                                    Unfortunately I'm not ready for battery testing yet, given not even being able to do the very basic uploading of a Serial Gateway sketch.

                                    1 Reply Last reply
                                    0
                                    • D Offline
                                      D Offline
                                      den2k
                                      wrote on last edited by
                                      #18

                                      A little update. I hooked up an official Arduino Uno I had around. This is what I see. It works! I see the gateway startup complete. which is great.

                                      I just wish my Pro Micros...

                                      upload-37307069-bb40-4022-9cd9-5fb4fdd6b75d

                                      1 Reply Last reply
                                      0
                                      • D Offline
                                        D Offline
                                        den2k
                                        wrote on last edited by den2k
                                        #19

                                        I spent a bunch of time testing different boards over the last few days. Official Uno. Sparkfun Pro Mini from Sparkfun. They all work.

                                        But not the Pro Micro clones I bought on Ebay. I reinstalled Pro Micro drivers from the Sparkfun Learn site. I've even used the Board Manager function and added URLs to 3rd party URLs under preferences thinking this official way to add boards instead of manually coping the driver into the correct directly would work. Nope!

                                        For now, my conclusion is the MySensors code does not work the Pro Micro clones. it sounds like these boards work for others. If so, please ping me. I've test a number of standard arduino sketches and also RF24 sketches, and they work on these Pro Micro clones, but for some reason the MySensors sketches do not work.

                                        Looks like I'm going to be purchasing some more test boards...

                                        1 Reply Last reply
                                        0
                                        • B Offline
                                          B Offline
                                          brolly759
                                          wrote on last edited by
                                          #20

                                          Why dont you burn the bootloader using an Uno onto the nano? That way you can make sure its not a bootloader issue

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


                                          10

                                          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