Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Mike_Lemo
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by Mike_Lemo

    • RE: nRF5 action!

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

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

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

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 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.

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

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

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 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

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

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

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

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

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @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

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

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

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @NeverDie When choosing "MyNRF5Board nrf52832"?

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

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

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

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

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

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

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

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

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @mfalkvidd said in nRF5 Bluetooth action!:

      @Mike_Lemo it would need to be ported

      No idea what you are talking about.

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

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

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @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

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

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

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      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

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

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

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @NeverDie but a much better but more expensive solution would be a lipo fuel guage from spark fun they use a Max chip for that.

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @NeverDie https://learn.adafruit.com/assets/39913

      Top right corner of the schematic.

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      Check on adafruits feather reference they use two resistors as a voltage divider for that simple and effective.

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @Toyman said in nRF5 Bluetooth action!:

      @Mike_Lemo

      http://www.arduino.org/learning/reference/ble

      This is their "homework" in anticipation of Primo launch. It does support nrf52

      @scalz said in nRF5 Bluetooth action!:

      @Mike_Lemo @Toyman
      BLEPeripheral lib from sandeep is working fine with nrf52832, as i'm using it 😉

      Regarding the sch above, it looks like a classic circuit (in LDO mode, not surprising as DCDC mode is optional). I'm not using same values but this should work..

      If you say so that's great I've downloaded that BLEPeripheral library opened one of the test and led examples and there are a few things I don't understand why would I have to define those IRQ pins and include SPI library to use the BLE on board?

      If order to send data back and forth between peripheral and central you have to use this function:?

      to read: switchCharacteristic.value();
      to write:characteristic.setValue(value, length);

      do you maybe have a little simple example to establish a connecting between central and peripheral with sending random data and peripheral and a smartphone?

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @Toyman what is that libray? I think of you refer to bel peripheral v0.3 it might not support the nrf52832 as I was asking before.

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @NeverDie said in nRF5 Bluetooth action!:

      @Mike_Lemo said in nRF5 Bluetooth action!:

      sins alot of functionality isn't supported

      If your abandoning from Arduino, what will you be abandoning to?

      Probably eclipse

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @NeverDie said in nRF5 Bluetooth action!:

      @Mike_Lemo said in nRF5 Bluetooth action!:

      I just made the antenna on my PCB stick out so there is no fiber glass under the antenna even.

      Yeah, that's what I opted for on Version 2 of my breakout board for the Ebyte nRF52832 module. Seems like the cleanest solution.

      The MDBT42Q is a lot smaller than the Ebyte module, so although I was bashing it for its performance on the Adafruit (which in their case may turn out to be ground plane related), that might be an acceptable trade-off for the smaller size.

      You have lots of good questions. Keep asking! I'm hoping to learn from the answers too.

      Yeah well at least I managed to flash a blink program to my pcb and confirm that it works but now I'm planning to abanded from Arduino anyways sins alot of functionality isn't supported.

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @d00616 said in nRF5 Bluetooth action!:

      @Mike_Lemo said in nRF5 Bluetooth action!:

      Also If I want to change the UART pins to other pins would it work without errors or If I want to use 2 or more UARTS? same with I2C

      The Chip has a lot of periphery on it. You can connect most components to pins. There is only one hardware UART, which can be connected. Please look at the Infocenter The arduino-nrf5 port is limited to things are implemented with arduino-samd by the author. This is the reason I have implemented an extension for hwPinMode() in MySensors.

      Another fine thing is the implementation of Shortcuts and the PPI. You can do a lot without using the CPU.

      @Mike_Lemo said in nRF5 Bluetooth action!:

      Also what are the debugging options available sins the RS232 is not connected to the MCU like in an arduino how would I set stop points or peek at variables values to see if the code runs as expected?

      Debugging depends on your programmer and flashing tool. I think you can start by search for "openocd gdb". OpenOCD is the flashing tool in arduino-nrf5 for all supported programmers.

      What is that MySensors thing you were talking about?

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @NeverDie I just made the antenna on my PCB stick out so there is no fiber glass under the antenna even.

      Also what is a good library for using NFC and the bluetooth peripheral of that MCU?
      I came across that library:

      https://github.com/sandeepmistry/arduino-BLEPeripheral

      but the page doesn't seem to support the BLE capability of the NRF52832
      and no luck for the NFC

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @NeverDie I had mine from seeed studio

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      Also If I want to change the UART pins to other pins would it work without errors or If I want to use 2 or more UARTS? same with I2C

      Also what are the debugging options available sins the RS232 is not connected to the MCU like in an arduino how would I set stop points or peek at variables values to see if the code runs as expected?

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      Yeah he did I just preformed a local search for that arduino15 on my PC

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @NeverDie I can't see the Generic nrf52 board setting

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @d00616 I meant is there a library or something for that? how do I approach it I'm relatively new for this 3rd party arduino programming thing and I'ts necessary for me sins I already made a PCB for a micro controller I want to use.

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @NeverDie where can that boards.txt file of the NRF52 thing be found?

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @d00616 It says there NFC is not useable but what if my board is NFC hardware ready? how would I use that?

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      you should follow this schematic design if you want to get this module working.

      0_1500734955886_Schematic-MDBT42Q Demo Board.png

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @NeverDie

      Oh yeah and forgot to mention I used the generic NRF52 settings.

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      Actually never mind I got it just removed the P0. and put the number for example if I want to flash P0.16 I do 16 and it works!!
      Feels so good to understand that I can now finish my big project now all I have to figure out it how to use NFC and connect it to another NRF52832 device!

      Here's a demo:

      https://www.youtube.com/watch?v=hCMKsORq2sM&feature=youtu.be

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      I'm tring to blink an led on a PCB I made not realy knowing how to program the IC before other than connection the SWD pins.

      I've followed the startup guide at github flashed the soft device probably successful using the ST link V2(while flashing the soft device it blinked the on board st link V2 led and at the end the blue led on my PCB stopped being on.)

      So I've got an RGB led connected to my PCB to pins:

      #define RGBL_RED_PIN P0.16
      #define RGBL_GREEN_PIN P0.15
      #define RGBL_BLUE_PIN P0.17

      now for a test to see if I got it right I want to blink each of them how would I do it?

      What is the arduino pin mapping?

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @NeverDie How did you manage to send and receive data between these two units? may you share the code with us?

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      @mtiutiu And when you want to program an independent chip with the ST link V2 do you just chose "generic nrf52"?

      Also how is it possible to connect between through two NRF52s in slave master config?
      Is it possible to take advantage of the NFC functionality with that programming environment?

      posted in My Project
      Mike_Lemo
      Mike_Lemo
    • RE: nRF5 action!

      how'd you program this blank nrf52832 chip with an SWD programmer like the ST link v2 what programming environment to use and so on?

      posted in My Project
      Mike_Lemo
      Mike_Lemo