Navigation

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

    Topics created by Oitzu

    • Oitzu

      Reducing number of cpu cycles while sending lots of data
      Development • • Oitzu  

      6
      0
      Votes
      6
      Posts
      1173
      Views

      Oitzu

      Also contra: no signing
    • Oitzu

      The AAduino
      Hardware • • Oitzu  

      6
      1
      Votes
      6
      Posts
      2151
      Views

      gohan

      The aaduino now has a new brother, the aaduino zero. Has anyone looked at it?
    • Oitzu

      Solar powered observation nesting box network
      My Project • • Oitzu  

      9
      5
      Votes
      9
      Posts
      2822
      Views

      Oitzu

      @hek thanks! I'm really happy with this article and this is great but i also hoped for a little more constructive criticism on the project.
    • Oitzu

      MYSXconnector boards?
      Hardware • • Oitzu  

      11
      0
      Votes
      11
      Posts
      1643
      Views

      Oitzu

      @Anticimex forget it, i wrapped my head arround it again and i'm totally wrong. Sorry for the inconvenience caused. Just wanted to get it right.
    • Oitzu

      Request for input: Driving 2 rgb stripes with 1 Arduino
      Hardware • • Oitzu  

      10
      0
      Votes
      10
      Posts
      2051
      Views

      Oitzu

      @ericvdb said: @Oitzu, that looks familiar, Ikea right Yes, you're right Older Malm Modell.
    • Oitzu

      Controlling LEDs with the IRLZ44N
      Hardware • • Oitzu  

      14
      0
      Votes
      14
      Posts
      15120
      Views

      Samuel235

      @Oitzu - From the information in the past replies and your original post i thought you was using the IRLZ44N.... If you did get this working, attempt to find the part you used please. I will order some genuine version from Farnell(Element 14) and compare the success to that of the Aliexpress version.
    • Oitzu

      Turning off connected ArduCAM
      Hardware • • Oitzu  

      8
      0
      Votes
      8
      Posts
      4153
      Views

      Oitzu

      @Anticimex said: @Oitzu it should work just fine. Thanks. Ordered this.
    • Oitzu

      Using nrf24l01+ with other devices together on one SPI-Bus.
      Development • • Oitzu  

      12
      0
      Votes
      12
      Posts
      11907
      Views

      ni_fe

      I was trying to make NRF24 and ADXL345 work on the same SPI bus. Each device worked ok individually, but not together, when used by the same program. After some investigation, using a logic analyzer (listening to the SPI pins and to the CS pins of both devices), I managed to solve the problem. What I found was: NRF24 (TMRH20 library) sets SPI settings before each SPI transaction it makes. It uses SPI_MODE0, MSBFIRST, SPI speed up to 10 MHz (not 100% sure about the max speed). ADXL (SparkFun library) does not change existing SPI settings before its transactions. It seems to do it only once when creating an instance of the device ADXL345 adxl = ADXL345(ADXL_ChipSelect_PIN); Therefore, the first NRF24 transaction modifies SPI settings, disabling the ADXL345. ADXL345 uses SPI_MODE3. MSBFIRST. SPI speed up to 5 MHz, according to the specs. So, here is how I made them work together: In the code, before each ADXL transaction I insert: SPI.beginTransaction(SPISettings(4000000, MSBFIRST, SPI_MODE3)); and SPI.endTransaction(); at the end of each transaction. The detailed description can be found here. I didn’t have to use SPI settings before NRF24 SPI transactions because, as already mentioned above, the RF24 library does it. Here is an exemplary code, which seems to work fine. #include <SPI.h> #include <nRF24L01.h> #include <RF24.h> #include <SparkFun_ADXL345.h> ADXL345 adxl = ADXL345(10); RF24 radio(8, 9); const byte address[6] = "00001"; void setup() { SPI.begin(); radio.begin(); radio.openWritingPipe(address); radio.setPALevel(RF24_PA_MIN); radio.stopListening(); SPI.beginTransaction(SPISettings(4000000, MSBFIRST, SPI_MODE3)); //SPI seetings for ADXL adxl.powerOn(); adxl.setRangeSetting(2); adxl.setRate(3200); adxl.setSpiBit(0); SPI.endTransaction(); //SPI seetings for ADXL } void loop() { int x,y,z; SPI.beginTransaction(SPISettings(4000000, MSBFIRST, SPI_MODE3));//SPI seetings for ADXL adxl.readAccel(&x, &y, &z); SPI.endTransaction();//SPI seetings for ADXL int val = x; radio.write(&val, sizeof(val)); delay(500); } Here is the logic analyzer view of the working SPI communication of both devices. One can see SPI modes changing before each transaction. And I didn’t delete the 3 lines, mentioned by Oitzu in the beginning of this post. If I did, NRF24 would not be able to set SPI the way it needs (namely MODE0) before each transaction. I guess, the devices of Oitzu were using the same mode, therefore deleting the SPI settings didn’t harm in that particular case. Please correct me if I’m wrong. I hope it helps.
    • Oitzu

      [SOLVED] 2 X nrf24l01+pa+lna with RF24_PA_MAX
      Troubleshooting • • Oitzu  

      31
      0
      Votes
      31
      Posts
      26098
      Views

      doblanch

      @Oitzu Yes of course, I'm using a Buck power down socket ( the one recommended on mysensor.org) thanks
    • Oitzu

      Searching for N-Channel MOSFET
      Hardware • • Oitzu  

      5
      0
      Votes
      5
      Posts
      2024
      Views

      Oitzu

      @epierre yeah the FQP30N06L would do the job, too. There's not much options in this sector, the irlz44n is overpowered for the application, too. But will do it. For very small applications i ordered a bunch of 2N7000. They do 60V 0,2A.
    • Oitzu

      Sending image-data over the MySensors network.
      Development • • Oitzu  

      27
      0
      Votes
      27
      Posts
      15771
      Views

      Guillermo Schimmel

      @Oitzu Great work. Looking forward to use it. I have a use for this (some remote roof drain that gets clogged with leaves). Thanks!