Navigation

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

    Best posts made by pansen

    • RE: 💬 Building a Orange Pi Gateway

      @marceloaqno: ok so here are my conclusions:
      After going through the schematics of the OPi Plus2e I realized that the H3 has dedicated pins for NAND/eMMC, which is probably not the case for the H2+ in the OPi zero. They used the pins of SPI1 for a status LED and a "MUTE" net, which is not connected anywhere so at first I was like "wtf?"...
      So, the SPI0 is free for usage out of the box and the .fex does not need to be modified. Summed up:

      If the OPi to be used has "SPI0" in the GPIO header, no .fex modifications are necessary. CE and CN/CS/CSN pin can be chosen freely (?), I picked it like this:
      ce - gray - pa13 - PHYSICAL pin8 - LOGICAL pin13 (1-1)*32 + 13
      cn - blue - pa14 - PHYSICAL pin10 - LOGICAL pin14 (1-1)*32 + 14
      If another pin is chosen, the pin number can be calculated with that formula: (position of letter in alphabet - 1) * 32 + pin number (from: https://linux-sunxi.org/GPIO)
      The pinout of the connector can be found here: https://linux-sunxi.org/Xunlong_Orange_Pi_Plus_2E#Expansion_Port (SPI0 pins are PC0-PC2 or 19,21,23)
      After connecting the physical pins 8,10,19,21 and 23 to the nrf24 (and pin 1 for 3.3v), following command was sufficient to set up mysgw and get the nrf24 to respond:
      ./configure --spi-spidev-device=/dev/spidev0.0 --my-transport=nrf24 --my-rf24-ce-pin=13 --my-rf24-cs-pin=14

      posted in Announcements
      pansen
      pansen
    • RE: Can't link rfid node item

      The ID shouldn't matter..

      What is the lock item? Showing the status of the lock?

      Interesting that those get added to your files, for me the items that I add through Paper UI are not reflected in the folder structure, which is quite annoying...

      Checking https://www.mysensors.org/controller and https://www.mysensors.org/download/serial_api_20 it looks like the lock stuff should be fully supported by OH, weird. Did you ask in their forums? It's superactive actually...

      posted in OpenHAB
      pansen
      pansen
    • RE: 💬 Building a Orange Pi Gateway

      @marceloaqno: I'm in the process of enabling SPI1 (and nrf24 subsequently) on the OPI Plus2e and it seems there are some hardware modifications necessary...I'd like to document on the way and when I am finished submit it somehow so it can be included here. Any suggestions for that?

      posted in Announcements
      pansen
      pansen
    • RE: Paying peanuts

      Good to know and good to hear. Have fun with your projects!

      posted in Hardware
      pansen
      pansen
    • RE: NRF24L01+ wie an ATtiny167 (Digisparc Pro) anschließen

      @mfalkvidd He's asking how to connect a nrf24 to an ATtiny167 and, if needed, what to tell MySensors to make it work.

      @Oskar-Dünnebeil Compare the pinouts, here's the ATtiny. Then connect it 1:1 if possible. I know of the options MY_CE_PIN and MY_CS_PIN, maybe there are more. Check the guides for that.

      posted in Troubleshooting
      pansen
      pansen
    • RE: 💬 Building a Orange Pi Gateway

      @lecintre: I just installed domoticz and I could enable my gateway by clicking on "please setup your Hardware" in the start screen, then selecting "mysensors gateway with lan interface" with the lan ip of my orange pi (but i guess 127.0.0.1 would also work) and port 5003.
      this should appear then:
      mysensors_lan_gw Yes MySensors Gateway with LAN interface
      Version: 2.2.0-beta Setup 0.0.0.0 5003 Disabled

      clicking on "Setup" then leads to a menu where i see my first test node:

      NodeID
      Name
      Sketch Name
      Version
      Children
      Last Seen
      0 Unknown Unknown 1.0 1 2017-01-29 20:27:28
      1 Unknown nrf24LEDtest 1.0 2 2017-01-29 20:28:27

      let me know if that works out for you

      posted in Announcements
      pansen
      pansen
    • RE: MySensors Gatway dimmers & Home assistant

      I'm confused, your arduino node is connected to something via serial?

      posted in Hardware
      pansen
      pansen
    • RE: JULA motion LED hack

      Ohh haha ok now I get it.

      Nice!

      posted in My Project
      pansen
      pansen
    • RE: Is my project possible with MySensors?

      Hi,

      I think it is possible. However, in your special case I would rather implement something from the scratch since you do not really need MySensors here (except maybe for signing messages and the WebGUI but you said no controller so..).

      There are nrf24 libraries floating around in the web, probably also some signing functionality I would suppose.

      For sending messages to your network, I'd just put another arduino to the RPi and use the serial port.

      So answering your questions:

      • Implement yourself, for MySensors I don't know
      • See above. MySensors has some signing capabilties afaik
      • Datasheet p24 describes the "received power detector (RPD)" which in the end is a register that can be read out.

      Hope that helps

      posted in Development
      pansen
      pansen
    • RE: 💬 MySensors Contest 2017

      Phew, May, better stop being lazy and get going 😀

      posted in Announcements
      pansen
      pansen
    • RE: RGB LED strip controller with FastLED

      @AWI Was about to say that 😉 For a hobbyist it doesn't matter that much but switching regulators are quite nasty when it comes to EMI.

      @gohan: A good rule of thumb is to assume that the voltage difference from input to output of the linear regulator will be converted to heat. So if you have a high current application or a high voltage difference a switching regulator is better. In case of running an Arduino (let's say it consumes 80mA@5V which is quite high) it's negligible: P=U*I=(12-5)*0.08=0.5W which should be dissipated without heatsink easily.

      edit: ah you just answered yourself ;D

      posted in My Project
      pansen
      pansen
    • RE: Is my project possible with MySensors?

      @frazzle said in Is my project possible with MySensors?:

      Why would arduino be better as a gateway?

      If you connect the nrf24 via SPI it will be emulated as an ethernet gateway, and I assume it is more complicated than using a serial gateway (i.e. Arduino) which you directly send commands to, via ttyUSBx. No experience in that though, maybe it is worth to dig a bit more.

      posted in Development
      pansen
      pansen
    • RE: 💬 MySensors Contest 2017

      @FotoFieber said in 💬 MySensors Contest 2017:

      Maybe a 3d printing project with my 8 year old daughter?

      I don't want to drive you out of the competition but go for that, trust me, she'll appreciate it 😉

      posted in Announcements
      pansen
      pansen
    • RE: MyExtension

      Nice work but please considering giving it a better name than "MyExtension" 😉

      posted in Development
      pansen
      pansen
    • RE: 💬 Building a Orange Pi Gateway

      @giran hi i don't think you can run the service and the binary standalone at the same time since hardware access is exclusive. Try to stop the service and then run the binary again.

      posted in Announcements
      pansen
      pansen
    • RE: Including "MySensors.h" in multiple files

      @user2684 said in Including "MySensors.h" in multiple files:

      @pansen to you point include guards do not solve the problem here since the error is coming from the linker, not from the compiler.

      Ah right, thanks!

      posted in Development
      pansen
      pansen
    • RE: 💬 Building a Orange Pi Gateway

      @awilner I am in a hurry right now so I cannot go through what you wrote in detail, but maybe my post about pin numbering can help you: https://forum.mysensors.org/post/58309 It is related to an OPi Plus2e using nrf24 but the numbering formulas should still be valid.

      Good luck!

      posted in Announcements
      pansen
      pansen