This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

NRF51 DK to control 220v LED

Hey all,

I am starting a little research on how to use my NRF51 DK to control a relay in order to turn off/on 220v operating devices.

I dont know much about electronics and wiring but after thorough research i think this might work.

The NRF51 and the 6 channel relay board have separate power sources and i want to control the relays by sending signals from the NRF51 (see pic 1)

My question is what should i use to program the board functionality to trigger the relays, i see the docs are a bit outdated or maybe not maintained anymore (see pic 2,3,4)

I have Win 10 on my computer so is is possible to use this board to achieve my prototyping purpose?

Any thoughts are welcome, thanks!

 Pic 1
Pic 2Pic 2

Pic 3 Pic 3

 Pic 4

  • Hello

    For the nRF51 I would recommend using the nRF5 SDK with SES. (For newer chips I would recommend nRF Connect SDK with VSCode but this does not support nRF51)

    You should start by having a look at this guide:

    https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_gsg_ses%2FUG%2Fgsg%2Fintro.html&cp=1_0_2

    Good luck!

    -Einar

  • Hi Einarh, these are the problems that I face during my first use of Segger according to the documentation that you sent me to follow.

    I am using the latest SES version available for download.

    I had no problems running the first test section but I need help starting with the section 7 of the document at the point of compiling the application code.

    These are the differences that I noticed during the process.

    1. First difference was that the crossed part was empty, and did not had any option to choose, but import went without errors.

    2. this is how my build configuration looks like

    3. I am using NRF SDK 10 because of the compatibility matrix that I followed for having all the functionalities for the NRF51 DK - pca10028 - so there was no (nRF5 SDK v12.x.x: flash_placement.xml)

    4. Finally when i tried to build the solution it throws build errors as shown in the image

    Please guide me through the process of compiling the project.

    What am I missing ?

  • Right, the old SDKs won't work with the newest SES version, and SES wasn't supported as early as v.10.0.0.

    Support for SES was added in nRF5 SDK v.14.1.0, you can see what IDEs and toolchains are supported for each version of the SDK in their release notes.

    For example v.14.1.0 supports SES 3.30 and IAR 7.80.4.

    So if you want to use v.10.0.0, you might have to use IAR 7.30.4.

    You'll have to keep this in mind when choosing what version of the SDK to use.

    -Einar

  • You are basically telling me that what I intend to do is impossible to accomplish using this Board and toolchain Setup.

    Is there some workaround using what I have before I get a new NRF52 ?

    Can I set up some working environment and flash some custom project using the existing toolchain so i can work with the pins and control the lighting relays ?

    Thanks

  • It looks like you should be able to use nRF5 SDK v.10.0.0 with MDK-ARM 5.14 (keil)

    https://www.keil.com/update/sw/mdk/5.14

    I'm not saying it's impossible for you to use your nRF51, you'll just have to set up an environment to program it in.

Related