GithubHelp home page GithubHelp logo

Make it work about pi-somfy HOT 16 CLOSED

nickduino avatar nickduino commented on August 24, 2024
Make it work

from pi-somfy.

Comments (16)

Nickduino avatar Nickduino commented on August 24, 2024

You have to register your new virtual remote, yes.

Long-press the prog button of the blind's remote to make your blind enter programming mode. Then send command 0x8 with a python scrypt to register the new remote.

from pi-somfy.

the-lazy-fox avatar the-lazy-fox commented on August 24, 2024

Could please give a code example to do that?
Thanks you so much

from pi-somfy.

Nickduino avatar Nickduino commented on August 24, 2024

I haven't done it in years :D

Last line:
envoi_commande("your_remote_name", 0x8)

from pi-somfy.

the-lazy-fox avatar the-lazy-fox commented on August 24, 2024
  1. Long-press the prog button of the blind's remote to make your blind enter programming mode.
  2. Blinders go down a bit and then up a bit
  3. I send the reg
sudo ./reg.py
0x267043
134
Remote  :      0x267043
Button  :      0x08
Rolling code : 134

Frame  :     0xA7 0x80 0x00 0x86 0x26 0x70 0x43
With cks  :  0xA7 0x8F 0x00 0x86 0x26 0x70 0x43
Obfuscated : 0xA7 0x28 0x28 0xAE 0x88 0xF8 0xBB
  1. I send the closing instructions
sudo ./som.py
0x267043
135
Remote  :      0x267043
Button  :      0x04
Rolling code : 135

Frame  :     0xA7 0x40 0x00 0x87 0x26 0x70 0x43
With cks  :  0xA7 0x42 0x00 0x87 0x26 0x70 0x43
Obfuscated : 0xA7 0xE5 0xE5 0x62 0x44 0x34 0x77
  1. Nothing happens. Few seconds later, I got a small move probably, Prog mode turning off.

How can I be sure the query is well sent?

from pi-somfy.

Nickduino avatar Nickduino commented on August 24, 2024

Looks ok at first glance.

Did you triple check your wiring?

Sure the emitter is broadcasting on the right frequency?

from pi-somfy.

the-lazy-fox avatar the-lazy-fox commented on August 24, 2024

I changed the crystal today with the one mentionned in the past.
Is there a way to be sure that the transmitter is well detected? plugged?

from pi-somfy.

Nickduino avatar Nickduino commented on August 24, 2024

Python is pretty new to me.

Are you more comfortable with C (Arduino)?

from pi-somfy.

the-lazy-fox avatar the-lazy-fox commented on August 24, 2024

I only have a RaspberryPi and python is closer from what I know :)
So

  1. I have triple check plug
  1. I have check wires, working

  2. I have check power with a small plugin in parallel on the emitter

Is there a way to be sure that the transmitter is well detected? plugged?

Thanks!

from pi-somfy.

Nickduino avatar Nickduino commented on August 24, 2024

99% sure it's the wiring.

Pigpiod uses the Broadcom (BCM) numbering. The link you posted shows the board numbering.
If you're new to the Pi, it's confusing.

I'll let you check your BCM GPIO (they've changed with the Pi's revisions) and I'm confident it will work once connected to the right pin.

Alternatively, you could use an oscilloscope to see on which pin data is transmitted but that's quite overkill :-D
Maybe a decent multimeter would work as well.

from pi-somfy.

the-lazy-fox avatar the-lazy-fox commented on August 24, 2024

It seems not as I'm plugged on the number 4 on my link... which is BCM pin 4 based on that link https://pinout.xyz/pinout/pin7_gpio4#

What do you think?

from pi-somfy.

Nickduino avatar Nickduino commented on August 24, 2024

I think you should write a program lightening up GPIO4 (or any, really) to make sure you identified the right pin.
Or maybe, just put an LED on GPIO4 with my Python script, you might see it flicker (not sure it will light up long enough, though).

If it's the right pin, try powering your emitter with 3.3V instead of 5V?

Check your soldering.

Try another emitter? Another crystal?

from pi-somfy.

the-lazy-fox avatar the-lazy-fox commented on August 24, 2024

Update, I have made the same setup but with a LED and this code:

import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(4,GPIO.OUT)
print "LED on"
GPIO.output(4,GPIO.HIGH)
time.sleep(2)
print "LED off"
GPIO.output(4,GPIO.LOW)

And it's working fine.
I will have to look the emitter closer or the crystal...

from pi-somfy.

Nickduino avatar Nickduino commented on August 24, 2024

That's probably the problem.

Did you try powering it with 3.3V instead of 5V?

from pi-somfy.

the-lazy-fox avatar the-lazy-fox commented on August 24, 2024

Yes I tried both.
I plugged my leds in parallel, they are blinking 3 times when I execute the script but nothing happens

from pi-somfy.

the-lazy-fox avatar the-lazy-fox commented on August 24, 2024

I have made another emmiter which seems to work.
Always order chinese products by 5, not 1.

from pi-somfy.

Nickduino avatar Nickduino commented on August 24, 2024

Excellent! I'm happy for you.

from pi-somfy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.