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
pansenP

pansen

@pansen
About
Posts
104
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • 💬 Building a Orange Pi Gateway
    pansenP pansen

    @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

    Announcements

  • Can't link rfid node item
    pansenP pansen

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

    OpenHAB

  • 💬 Building a Orange Pi Gateway
    pansenP pansen

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

    Announcements

  • Paying peanuts
    pansenP pansen

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

    Hardware

  • NRF24L01+ wie an ATtiny167 (Digisparc Pro) anschließen
    pansenP pansen

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

    Troubleshooting

  • 💬 Building a Orange Pi Gateway
    pansenP pansen

    @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

    Announcements

  • MySensors Gatway dimmers & Home assistant
    pansenP pansen

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

    Hardware

  • JULA motion LED hack
    pansenP pansen

    Ohh haha ok now I get it.

    Nice!

    My Project

  • Is my project possible with MySensors?
    pansenP pansen

    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

    Development

  • 💬 MySensors Contest 2017
    pansenP pansen

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

    Announcements

  • RGB LED strip controller with FastLED
    pansenP pansen

    @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

    My Project

  • Is my project possible with MySensors?
    pansenP pansen

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

    Development

  • 💬 MySensors Contest 2017
    pansenP pansen

    @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 ;)

    Announcements

  • MyExtension
    pansenP pansen

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

    Development

  • 💬 Building a Orange Pi Gateway
    pansenP pansen

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

    Announcements

  • Including "MySensors.h" in multiple files
    pansenP pansen

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

    Development

  • 💬 Building a Orange Pi Gateway
    pansenP pansen

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

    Announcements
  • Login

  • Don't have an account? Register

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