Pro Micro Hookup and Code



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


  • Hero Member

    @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



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



  • 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



  • 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.... 🙂



  • 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


  • Hero Member

    @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



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


  • Hero Member

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

    Cheers
    Al





  • @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.


  • Hero Member

    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.



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


  • Hero Member

    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.



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


  • Hero Member

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



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



  • 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



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



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



  • Just to give an update. I was never able to get the Pro Micro's that I bought on Ebay to work. I purchase some Pro Mini. Looks like I am able to get the Serial Gateway not only detected by the Pi, but also looks like I am about to received Node data. Not completely done yet but looks promising.



  • I got also problems to upload the scetch to an arduino micro. After uploading the micro does not connect on any COM-Port. Only if I reset the bootloader, I can write other sample scetches to the micro. So it seams, that the gateway code does not working well with an arduino micro.


Log in to reply
 

Suggested Topics

  • 87
  • 6
  • 3
  • 5
  • 2
  • 8

21
Online

11.4k
Users

11.1k
Topics

112.7k
Posts