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
M

Mike_Lemo

@Mike_Lemo
About
Posts
43
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • nRF5 action!
    M Mike_Lemo

    @scalz

    Yeah but my question was about what is connected in the module and what components I have to use....

    Also about the NFC I'm planning to use it with the arduino IDE so just wanted to ask if there is a library for it because the SDK is quite useless in this case as well as the Central peripheral connection.

    My Project

  • nRF5 action!
    M Mike_Lemo

    @d00616 said in nRF5 Bluetooth action!:

    @Mike_Lemo said in nRF5 Bluetooth action!:

    Where is it possible to find a reference schematic for using the NTF52832 E73-2G4M04S module with NFC?
    not much is being given in the datasheet not even where the NFC pins go.

    Please look into the product documentation:
    http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/nfc.html?cp=2_1_0_41_8#concept_ryw_4hk_1s

    @NeverDie said in nRF5 Bluetooth action!:

    At the moment on Arduino, there is no definition of various OUTPUT modes. If you want to access all nRF5 output modes, you have to use hwPinMode and the OUTPUT_... macro.

    Exactly which macro would that be? It looks to me as though what most users will want is the function nrf5_pinmode(..,..), which appears to do all the actual work. Is that right? It is defined in the file nrf5_wiring_digital.c.

    hwPinMode allows to define platform specific PinMode replacements. Code may be portable. This is the reason pointing to nrf5_pinmode().

    nrf5_pinmode() has a little bit more functionality than the original pinmode function.

    Meanwhile, hwPinMode appears to be merely a straight pass-through for pinMode:

    void hwPinMode(uint8_t pin, uint8_t mode)
    {
    pinMode(pin, mode);
    }

    This disables the capability using nRF5 specific pin modes with the MySensors API.

    I'm talking about the module it's self isn't there a reference schematic for that? I see there are some component in there but else do I have to add to make this work?

    My Project

  • nRF5 action!
    M Mike_Lemo

    Where is it possible to find a reference schematic for using the NTF52832 E73-2G4M04S module with NFC?

    not much is being given in the datasheet not even where the NFC pins go.

    My Project

  • nRF5 action!
    M Mike_Lemo

    @Mike_Lemo said in nRF5 Bluetooth action!:

    @NeverDie said in nRF5 Bluetooth action!:

    @Mike_Lemo said in nRF5 Bluetooth action!:

    Any idea how I reach to this code?

    Yes, it's all explained in detail by @d00616 here: https://www.openhardware.io/view/376/MySensors-NRF5-Platform

    Also you say you don't experience any issues with I2C like that?

    Haven't tried I2C on this platform yet. I'd be very surprised if it didn't work though, as that's ARM Cortex M4 stuff, which is well vetted. i.e. no real dependency on anything Nordic per se.

    The link you attached links me to a getting started page not wireing two nrf's together

    Yes I did mean wirelessly like central and peripherial connection... Is that supported?

    My Project

  • nRF5 action!
    M Mike_Lemo

    @NeverDie said in nRF5 Bluetooth action!:

    @Mike_Lemo said in nRF5 Bluetooth action!:

    Any idea how I reach to this code?

    Yes, it's all explained in detail by @d00616 here: https://www.openhardware.io/view/376/MySensors-NRF5-Platform

    Also you say you don't experience any issues with I2C like that?

    Haven't tried I2C on this platform yet. I'd be very surprised if it didn't work though, as that's ARM Cortex M4 stuff, which is well vetted. i.e. no real dependency on anything Nordic per se.

    The link you attached links me to a getting started page not wireing two nrf's together

    My Project

  • nRF5 action!
    M Mike_Lemo

    @NeverDie said in nRF5 Bluetooth action!:

    @Mike_Lemo said in nRF5 Bluetooth action!:

    Did anyone managed to get two NRF52832 to connect to each other with the arduino IDE and communicate?
    

    Yes. @d00616's demo code will do this.

    I don't know the answers to the rest of your questions, because I don't use the ST.

    Any idea how I reach to this code?

    Also you say you don't experience any issues with I2C like that?

    My Project

  • nRF5 action!
    M Mike_Lemo

    Did anyone managed to get two NRF52832 to connect to each other with the arduino IDE and communicate?

    Also why does I2C initializes only after an SWD programmed gets connected?

    Wierd phenomenon when I use an I2C oled display with that chip and program it with an st link V2 after it displays alright when it's booted if the SWD programmer is connected but as soon as you disconnect it everything else works but the I2C display...

    My Project

  • nRF5 action!
    M Mike_Lemo

    @d00616 said in nRF5 Bluetooth action!:

    @Mike_Lemo said in nRF5 Bluetooth action!:

    Dunno that whole arduino BRF52832 programming thing seems too complicated just started to learn how to use the nordic SDK with eclipse until a proper solution is found.

    The Nordic SDK is more complete than Arduino-nrf5 at the moment, but there is no compatibility with MySensors.

    The good news, with SDK 13 the 'Nordic Semiconductor ASA' License was changed. The old ASA was the reason for me to rewrite the complete ESB protocol. Now the license is much less restrictive. I think now the way is open to integrate SDK code into arduino-nrf5 or provide SDK based arduino-libraries.

    .

    You mean way more complete every thing is accesable there and there is an example for everything and I didn't use my sensors anyways

    My Project

  • nRF5 action!
    M Mike_Lemo

    @NeverDie said in nRF5 Bluetooth action!:

    At some point, I had to re-arrange the libraries though (don't remember which files or which ones) to get all this stuff working. Before that, it wasn't finding the files. Actually, I think this would be a good topic for discussion, to make sure we're all doing it the same way. If we're doing it differently, it might make cross-checking each others attempts more difficult. Also, maybe there's a better way than the brute-force way that I did it.

    If anyone has interest, I can post how my libraries are currently structured. If nothing else, it would be a starting point for discussion on what to do (or not to do).

    Dunno that whole arduino BRF52832 programming thing seems too complicated just started to learn how to use the nordic SDK with eclipse until a proper solution is found.

    My Project

  • nRF5 action!
    M Mike_Lemo

    @NeverDie When choosing "MyNRF5Board nrf52832"?

    My Project

  • nRF5 action!
    M Mike_Lemo

    @d00616 said in nRF5 Bluetooth action!:

    @Mike_Lemo said in nRF5 Bluetooth action!:

    I couldn't find that exact "MySensors nRF5 Boards" library you were talking about also what is the purpose of this library anyways?

    Follow the instructions for ArduinoBoards and ArduinoHwNRF5

    Do you know where can the arduino library folder be found with all the arduino functions?

    The arduino-nrf5 port only implements functionality documented in the official Arduino Reference but mostly not more functionality available for SAMD :-(. Additional functionality like BLE or using included hardware must come from external libraries like MySensors.

    A good way to implement the tone commands is to fork the arduino-nRF5 repository at github. Change what you need and create an pull request with reference to the Arduino reference. If you inform me about your PR I comment it to increase the chance for acceptance otherwise it's time to maintain an separate fork of this repository.

    that actually caused more trouble won't even let me compile the blank included example code.

    My Project

  • nRF5 action!
    M Mike_Lemo

    @d00616 said in nRF5 Bluetooth action!:

    MySensors nRF5 Boards

    Thanks for the caring replay.

    I couldn't find that exact "MySensors nRF5 Boards" library you were talking about also what is the purpose of this library anyways?

    Do you know where can the arduino library folder be found with all the arduino functions?

    My Project

  • nRF5 action!
    M Mike_Lemo

    Someone managed to get NFC to work with this IC on the arduino IDE?

    My Project

  • nRF5 action!
    M Mike_Lemo

    @mfalkvidd said in nRF5 Bluetooth action!:

    @Mike_Lemo look it up? https://en.wikipedia.org/wiki/Software_portability#Effort_to_port_source_code

    Well apperantly this function uses a PWM pin at 50% duty but the frequency varies according to the functiong user parameter now I just know how to active a PWM pin at 50% duty but not how to acces the NRF52 registers to change the frequency of the PWM.

    I don't realy know how to access the registers you see at the product's PDF and the other process.

    My Project

  • nRF5 action!
    M Mike_Lemo

    @mfalkvidd said in nRF5 Bluetooth action!:

    @Mike_Lemo it would need to be ported

    No idea what you are talking about.

    My Project

  • nRF5 action!
    M Mike_Lemo

    @mfalkvidd said in nRF5 Bluetooth action!:

    @Mike_Lemo if you mean the stuff described at https://www.arduino.cc/en/Reference/Tone it's because it only supports the following mcus:
    ATmega8
    ATmega168/328
    ATmega1280

    How is it possible to make it copatible with the NRF52?

    My Project

  • nRF5 action!
    M Mike_Lemo

    @mfalkvidd said in nRF5 Bluetooth action!:

    @Mike_Lemo could you be slightly more specific than "doesn't work"?

    apparently it doesn't recognize it says tone wasn't declared in this scope

    That's how the line looks tone(BUZZER_PIN, BUZZER_TONE);
    BUZZER_PIN = 26
    BUZZER_TONE = 3000

    My Project

  • nRF5 action!
    M Mike_Lemo

    Does anybody know why the function tone() doesn't work for the nrf52?

    My Project

  • nRF5 action!
    M Mike_Lemo

    From what I understand the NRF52832 has some kind of enforcer that allows different serial hardwares to be assigned to different pins

    Now using the arduino IDE I want to use the I2C pins that are assigned hardwarely to different pins here is the situation

    I have one PCB that has SCL connected to pin 20 and SDA to 21

    and another PCB that has SCL connected to pin 11 and SDA to pin 12

    I want to define the enforcer for the pins within their dedicated sketches without running around to the internal arduino files and change the pin assignment for each upload to each board.

    How'd I do that? I assume you'd have to do some thing like that in the upper side of the personal code.

    #define SDL...(Something else I don't know ) 11
    #define SDA...(Something else I don't know ) 12

    My Project

  • nRF5 action!
    M Mike_Lemo

    @NeverDie Dam you why would you make it so wide? can it fit on a single bread board?

    Also how did you get those so fast?

    My Project
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular