Go to advanced search

by KnalexAlex
Wed Apr 20, 2016 9:27 am
Forum: Automation, sensing and robotics
Topic: Controlling A Micro Servo via PUBNUB
Replies: 0
Views: 313

Controlling A Micro Servo via PUBNUB

How can I add a Micro Servo Motor from a WEB UI controlled with Pubnub. The tutorial I followed: Building a Raspbery pi The code I used was: https://github.com/pubnub/pi-house Thanks! the code I tried so far: import RPi.GPIO as GPIO import time import sys from pubnub import Pubnub GPIO.setmode(GPIO....
by KnalexAlex
Tue Apr 19, 2016 6:53 am
Forum: Automation, sensing and robotics
Topic: PCA9685 16 Channel 12 Bit PWM Servo Driver
Replies: 1
Views: 2597

PCA9685 16 Channel 12 Bit PWM Servo Driver

I bought a PCA9685 16 Channel 12 Bit PWM Servo Driver so I could power many LED's. How can I control these Led's from a python program? Can I assign Many Led's to 1 section or GPIO pin? Does someone know a tutorial I can follow?

Thanks!
by KnalexAlex
Sun Apr 17, 2016 3:55 pm
Forum: Automation, sensing and robotics
Topic: Running Multiple Led's from few GPIO pins
Replies: 3
Views: 895

Re: Running Multiple Led's from few GPIO pins

But how would that work with the power supply?
by KnalexAlex
Sun Apr 17, 2016 3:34 pm
Forum: Automation, sensing and robotics
Topic: Running Multiple Led's from few GPIO pins
Replies: 3
Views: 895

Running Multiple Led's from few GPIO pins

How can I run multiple Led's from few GPIO pins? I am building a smart home and I want to control lights in three rooms. I have already succeeded in controlling 3 led's from 3 GPIO pins. Can I control more than 3 Led's (either more per GPIO pin or more in general)? The problem is that the max. power...
by KnalexAlex
Sun Apr 17, 2016 9:30 am
Forum: Automation, sensing and robotics
Topic: Running Various Programs at once
Replies: 2
Views: 763

Running Various Programs at once

How can I run various programs at once. I have a DHT22 sensor sending info to Pubnub, and the LED's program running so I can control the form Pubnub. How can I run both programs at the same time? the code for the DHT22 sensor is: import time import sys from pubnub import Pubnub import Adafruit_DHT a...
by KnalexAlex
Mon Apr 11, 2016 4:03 pm
Forum: Automation, sensing and robotics
Topic: Running Various Programs at once and MORE LED's
Replies: 3
Views: 776

Re: Running Various Programs at once and MORE LED's

I did exactly what it says on the Tutorial. The question is whether I can have three LED's(or more) connected to one GPIO pin and still use the PWM technique or just connect more LED's (one per GPIO pin) with external power supply but still have PWM. The other problem I have is how I can have a DHT2...
by KnalexAlex
Mon Apr 11, 2016 3:14 pm
Forum: Automation, sensing and robotics
Topic: Running Various Programs at once and MORE LED's
Replies: 3
Views: 776

Running Various Programs at once and MORE LED's

I just finished all of the prototyping of this project: https://www.pubnub.com/blog/2015-03-17-building-a-model-smart-home-with-raspberry-pi/ , and I encountered 2 problems: 1. I cant run all of the programs at once(Humidity and Temperature, LEDs, Micro Servo motors, etc...) 2. I can't have more tha...
by KnalexAlex
Fri Mar 18, 2016 4:04 pm
Forum: Automation, sensing and robotics
Topic: Micro Servo Motor twitching
Replies: 4
Views: 5552

Re: Micro Servo Motor twitching

Thank you so very much!!! This solved the problem! It has now stopped twitching! You were right, it probably was the precision of the pulses. This is because on RPi.GPIO, the values are in Percent, from a formula that uses milliseconds. Here the values are in microseconds, which makes it much more p...
by KnalexAlex
Thu Mar 17, 2016 3:33 pm
Forum: Automation, sensing and robotics
Topic: Micro Servo Motor twitching
Replies: 4
Views: 5552

Re: Micro Servo Motor twitching

Does the coding work in a similar way? Or is it completely different. Could you provide a sample please? Thank you! EDIT: I figured out how it would supposedly work, but it will give me this error: File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'set_mode' the co...
by KnalexAlex
Wed Mar 16, 2016 7:36 pm
Forum: Automation, sensing and robotics
Topic: Micro Servo Motor twitching
Replies: 4
Views: 5552

Micro Servo Motor twitching

Hello. I am currently working on a Smart Home that is controlled with the Raspberry Pi and Pubnub (To control it from other devices). I have started by trying to get the Micro Servo Motors to rotate using the PWM method (I will use them to automate the Doors). I used the standard code to test out di...

Go to advanced search