Go to advanced search

by johnestan
Tue Oct 25, 2016 9:31 pm
Forum: Advanced users
Topic: Pi controlling pi with pigpio daemon
Replies: 1
Views: 492

Pi controlling pi with pigpio daemon

Hi, I'm trying to control a servo with a pi zero running pigpio daemon that is receiving commands from a raspberry pi 3 using python. I'm not sure where to start though. A simple example of the code to send and receive a servo position (pi.set_servo_pulsewidth) would be a huge help. Also is it possi...
by johnestan
Fri Oct 21, 2016 1:58 pm
Forum: Raspbian
Topic: Raspbian with RPI Desktop and RealVNC
Replies: 69
Views: 54925

Re: Pixel and RealVNC

I was previously using the TightVNC Java Viewer, but it didn't work on a fresh install of pixel. RealVNC works great though.
by johnestan
Mon Oct 10, 2016 9:47 pm
Forum: Advanced users
Topic: Wireless GPIO pin outputs
Replies: 9
Views: 2011

Re: Wireless GPIO pin outputs

Hi again. I'm still looking into solutions for this, and I came across XBee DIO Line Passing. From what I understand, this is a feature of only some of the XBee models (like the series 1) that copies a pin's analog or digital signal across a pair of XBees. This seems like the perfect solution for me...
by johnestan
Fri Oct 07, 2016 2:06 pm
Forum: General discussion
Topic: XBee+ Raspberry Pi+ Python
Replies: 0
Views: 280

XBee+ Raspberry Pi+ Python

Hi, I'm trying to control two servos wirelessly using XBee modules. I currently have my code working on an original pi that is connected (wired) to the two servos. Can someone point me to some material on this? I don't care what receives the signal on the other end, be it arduino, raspberry pi, or s...
by johnestan
Mon Sep 26, 2016 2:48 pm
Forum: Advanced users
Topic: Wireless GPIO pin outputs
Replies: 9
Views: 2011

Re: Wireless GPIO pin outputs

In that case, put a Pi Zero with WiFi dongle inside (on battery power -- will last long enough for a demo) just to control the servos according to signals on the WiFi. Run the control program and indicators on a Pi3 outside (7" touchscreen control looks good!) Make one Pi an AP (probably the Zero s...
by johnestan
Fri Sep 23, 2016 9:45 pm
Forum: Advanced users
Topic: Wireless GPIO pin outputs
Replies: 9
Views: 2011

Re: Wireless GPIO pin outputs

How are you going to power the servos? Can't you take control cables the same way? I plan on having them battery powered for now. Eventually I'll tie them to the main power of the cnc. My boss wants to be able to take the system to customers and show them a quick demo. Wireless would make the demo-...
by johnestan
Fri Sep 23, 2016 9:42 pm
Forum: Advanced users
Topic: Wireless GPIO pin outputs
Replies: 9
Views: 2011

Re: Elescalador

ElEscalador wrote:I cant think of anything easier than putting the whole pi in the cabinet, then talking to that pi with another computer via ssh or vnc
I have indicator leds and input buttons that need to be outside the machine.
by johnestan
Fri Sep 23, 2016 9:31 pm
Forum: Advanced users
Topic: Wireless GPIO pin outputs
Replies: 9
Views: 2011

Wireless GPIO pin outputs

Hi, sorry if the wrong section, but I'm need a way to transfer 2 PWM signals for controlling 2 servos wirelessly. I already have my code up and running wired. The pi and the servos will only be 3-4 feet apart, but the servos will be inside a CNC machine. So there will be a close safety door in betwe...
by johnestan
Wed Sep 21, 2016 4:09 pm
Forum: Automation, sensing and robotics
Topic: Ultimate rotary encoder switch decoder
Replies: 18
Views: 26335

Re: Ultimate rotary encoder switch decoder

joan wrote:It might be worth giving http://abyz.co.uk/rpi/pigpio/examples.h ... encoder_py a try. It uses a different method to capture the pulses.
Thanks you so much! Your method gives me the accurate encoder readings I need.
by johnestan
Tue Sep 20, 2016 9:51 pm
Forum: Automation, sensing and robotics
Topic: Ultimate rotary encoder switch decoder
Replies: 18
Views: 26335

Re: Ultimate rotary encoder switch decoder

Hi johnestan, Well, not knowing how your setup looks like here are some ideas: most obvious one: did you call init()? Is rotary encoder connected to correct pins. In my example I have used GPIO 4 and and GPIO 14 which correspond to pin numbers 7 and 8 on 40 pin connector. Next is that GPIO 14 an be...
by johnestan
Mon Sep 19, 2016 2:57 pm
Forum: Automation, sensing and robotics
Topic: Ultimate rotary encoder switch decoder
Replies: 18
Views: 26335

Re: Ultimate rotary encoder switch decoder

Hi. I can't get this code to work. I have the A and B pins hooked directly to the raspberry pi. With some printing, I found that my callback doesn't get triggered when turning the rotary encoded. Got any idea? Thanks
by johnestan
Thu Sep 15, 2016 9:16 pm
Forum: Python
Topic: Starting and exiting callback with same button
Replies: 1
Views: 379

Starting and exiting callback with same button

Hi, I pretty new to coding, and I'm having some trouble. First, Let me tell you what I want: I have 4 momentary buttons. I want each button to start a specific loop of code. The loop should end when I press any of the 4 buttons. I've gotten pretty close to what I want using callbacks for each button...

Go to advanced search