Nordic nRF52840: Difference between revisions
Brian Wilson (talk | contribs) |
Brian Wilson (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
I have 2 of the Nordic tiny dev boards in the USB form factor, | I have 2 of the Nordic tiny dev boards in the USB form factor, | ||
[https://infocenter.nordicsemi.com/index.jsp?topic=/ug_nrf52840_dongle/UG/nrf52840_Dongle/getting_started.html NRF52840-DONGLE] from Digikey, about $10 each. | [https://infocenter.nordicsemi.com/index.jsp?topic=/ug_nrf52840_dongle/UG/nrf52840_Dongle/getting_started.html NRF52840-DONGLE] from Digikey, about $10 each. | ||
Nordic [https://infocenter.nordicsemi.com/index.jsp?topic=/ug_nrf52840_dongle/UG/nrf52840_Dongle/getting_started.html Getting started]guide | |||
They can do Zigbee, which is why I got them and of course have done nothing with so far. | They can do Zigbee, which is why I got them and of course have done nothing with so far. | ||
== | == Loading Circuit Python == | ||
The nrf52840 supports USB making it easy to program. | |||
[https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop | I can put CircuitPython on it. | ||
Install the dev tools: [https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop nRF Connect for desktop] | |||
Use that to install the [https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nc_programmer%2FUG%2Fnrf_connect_programmer%2Fncp_introduction.html programmer]. | |||
After getting the board to connect as a mass storage device then I can put | After getting the board to connect as a mass storage device then I can put | ||
Line 18: | Line 18: | ||
I think for this board, I will need to install their bootloader too. | I think for this board, I will need to install their bootloader too. | ||
== My first project: HID Keyboard == | |||
When I got CircuitPython running I put the "Hello world" app on there and changed it to | |||
playback my long and complex password. That's it for this project! | |||
It powers on and becomes an HID keyboard in about 2 seconds and then on each button press it plays my password. Ta-da! | |||
Other ways I could do this: I could use a | Other ways I could do this: I could use a Adafruit RP2040 Feather for $10. I already got it going on an Adafruit Circuit Playground Express $25. | ||
It's about what's in my <s>junk drawer</s> inventory, not what it costs. The nRF is a handy form factor. A Pi Zero for $5 would work but I don't own one and it would require booting Linux so it would be too slow. I did try out the HID keyboard thing on a Pi Zero W. Too complicated | It's about what's in my <s>junk drawer</s> inventory, not what it costs. The nRF is a handy form factor. A Pi Zero for $5 would work but I don't own one and it would require booting Linux so it would be too slow. I did try out the HID keyboard thing on a Pi Zero W. Too complicated. A $4 Pico would work but does it have a button? |
Revision as of 16:31, 1 July 2022
I have 2 of the Nordic tiny dev boards in the USB form factor, NRF52840-DONGLE from Digikey, about $10 each.
Nordic Getting startedguide
They can do Zigbee, which is why I got them and of course have done nothing with so far.
Loading Circuit Python
The nrf52840 supports USB making it easy to program.
I can put CircuitPython on it. Install the dev tools: nRF Connect for desktop Use that to install the programmer.
After getting the board to connect as a mass storage device then I can put Circuit Python onto it. I think for this board, I will need to install their bootloader too.
My first project: HID Keyboard
When I got CircuitPython running I put the "Hello world" app on there and changed it to playback my long and complex password. That's it for this project!
It powers on and becomes an HID keyboard in about 2 seconds and then on each button press it plays my password. Ta-da!
Other ways I could do this: I could use a Adafruit RP2040 Feather for $10. I already got it going on an Adafruit Circuit Playground Express $25.
It's about what's in my junk drawer inventory, not what it costs. The nRF is a handy form factor. A Pi Zero for $5 would work but I don't own one and it would require booting Linux so it would be too slow. I did try out the HID keyboard thing on a Pi Zero W. Too complicated. A $4 Pico would work but does it have a button?