Go to advanced search

by lore
Mon Oct 17, 2016 3:34 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to Get/Set PWM Freq. & Duty Cycle from 1kHz to 20kHz?
Replies: 13
Views: 4162

Re: How to Get/Set PWM Freq. & Duty Cycle from 1kHz to 20kHz

... By the way,how does it work the buffer size (i.e. "-bValue") of PiGPIOd? That option sets the buffer size (in milliseconds) for GPIO samples. It defaults to 120 milliseconds. pigpio is continually sampling the GPIO in the background and then sending changes to those processes which have asked f...
by lore
Thu Oct 13, 2016 12:30 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to Get/Set PWM Freq. & Duty Cycle from 1kHz to 20kHz?
Replies: 13
Views: 4162

Re: How to Get/Set PWM Freq. & Duty Cycle from 1kHz to 20kHz

... By the way,how does it work the buffer size (i.e. "-bValue") of PiGPIOd? That option sets the buffer size (in milliseconds) for GPIO samples. It defaults to 120 milliseconds. pigpio is continually sampling the GPIO in the background and then sending changes to those processes which have asked f...
by lore
Thu Oct 13, 2016 8:24 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to Get/Set PWM Freq. & Duty Cycle from 1kHz to 20kHz?
Replies: 13
Views: 4162

Re: How to Get/Set PWM Freq. & Duty Cycle from 1kHz to 20kHz

Yes, GPIO may only be used for one purpose at any one time. If you only need two GPIO (and GPIO 12/13 or 18/19 are spare on your Pi) then just use the hardware_PWM function. The wavePWM class is irrelevant to that solution. A potential downside of hardware_PWM is you can't control the phase of the ...
by lore
Thu Oct 13, 2016 6:58 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to Get/Set PWM Freq. & Duty Cycle from 1kHz to 20kHz?
Replies: 13
Views: 4162

Re: How to Get/Set PWM Freq. & Duty Cycle from 1kHz to 20kHz

Waves can be used to generate arbitrary wave forms, e.g. to generate IR remote pulses, RF messages, serial data. You can only perform one of those functions at any one time. All I am saying is that if you use a wave to transmit an IR remote pulse it can't also be generating PWM at the same time. If...
by lore
Wed Oct 12, 2016 3:43 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to Get/Set PWM Freq. & Duty Cycle from 1kHz to 20kHz?
Replies: 13
Views: 4162

Re: How to Get/Set PWM Freq. & Duty Cycle from 1kHz to 20kHz

From wavePWM.py pigpio waves are used to generate the PWM. Note that only one wave can be transmitted at a time. So if waves are being used to generate PWM they can't also be used at the same time for another purpose. A wave is generated of length 1000000/frequency microseconds. The GPIO are switch...
by lore
Wed Oct 12, 2016 1:14 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to Get/Set PWM Freq. & Duty Cycle from 1kHz to 20kHz?
Replies: 13
Views: 4162

Re: How to Get/Set PWM Freq. & Duty Cycle from 1kHz to 20kHz

I have removed the redundancy from your snippet to end up with the following #!/usr/bin/env python import time import pigpio import wavePWM pi = pigpio.pi() if not pi.connected: exit() pwm = wavePWM.PWM(pi) pwm.set_pulse_start_and_length_in_fraction(5, 0, 0.5) for i in range(11000, 11050, 10): pwm....
by lore
Wed Oct 12, 2016 10:47 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to Get/Set PWM Freq. & Duty Cycle from 1kHz to 20kHz?
Replies: 13
Views: 4162

Re: How to Get/Set PWM Freq. & Duty Cycle from 1kHz to 20kHz

Could you post the code or example code which demonstrates the problem you are having? Sure! I am exploiting your "wave PWM 2" example, which was edited in its "main" section in the "try" like that: for i in range(11000, 11050, 10): if i % 400: pwm.set_frequency(i) else: pwm.set_cycle_time(1000000....
by lore
Wed Oct 12, 2016 8:04 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to Get/Set PWM Freq. & Duty Cycle from 1kHz to 20kHz?
Replies: 13
Views: 4162

How to Get/Set PWM Freq. & Duty Cycle from 1kHz to 20kHz?

Hi everyone, I am using Joan's PiGPIOd and Python interface as platform to communicate with a system. This system has an interface with three signals: two PWM outputs and one PWM input. These signals contain the information in their frequency (e.g. 1kHz means "0.00", 20kHz means "1.00"). Joan's tool...
by lore
Thu Feb 14, 2013 11:55 am
Forum: Automation, sensing and robotics
Topic: ROS (Robot Operating System) on RPi
Replies: 124
Views: 44421

Re: ROS (Robot Operating System) on RPi

Now that is an easy problem to solve :) I reduced the file size to a minimum, so you would not have so much to download. You will need to increase the size of the partition by using gparted on a Linux workstation (that is how I did it) or use sudo raspi-config and select 'expand_rootfs' Also feel f...
by lore
Tue Jan 29, 2013 2:48 pm
Forum: Automation, sensing and robotics
Topic: ROS (Robot Operating System) on RPi
Replies: 124
Views: 44421

Re: ROS (Robot Operating System) on RPi

Try downloading the image again, given the standardised platform the problem is likely due to the corruption of the image. Anyone who has a working image on them, can you do an md5sum and post it here please so others can check the download? You were right, thanks! It was a file corruption problem....
by lore
Mon Jan 28, 2013 10:44 am
Forum: Automation, sensing and robotics
Topic: ROS (Robot Operating System) on RPi
Replies: 124
Views: 44421

Re: ROS (Robot Operating System) on RPi

I have never seen this error. Is it just a warning or does it not let you log in at all? Is the image working for anyone else? Unfortunatly it is an error. :cry: The error is shown after the user insertion. When the user is taped in, the return is: /bin/login: /lib/arm-linux-gnueabihf/libdl.so.2: n...
by lore
Fri Jan 25, 2013 3:45 pm
Forum: Automation, sensing and robotics
Topic: ROS (Robot Operating System) on RPi
Replies: 124
Views: 44421

Re: ROS (Robot Operating System) on RPi

Hey guys, I compiled the desktop package and got it to compile for almost every single package. The only packages that did not work were PCL and rviz. PCL needs a lot of SRAM to compile and threw some read/write errors on the swapfile. If anybody gets either package to compile, please share, I will...

Go to advanced search