Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Added support for pi2 #56

Closed
wants to merge 5 commits into from

Conversation

tylerwowen
Copy link

I added support for Pi2. Only tested on Pi2. It works on Pi2, but I'm not sure if it is fully working.

@tylerwowen tylerwowen changed the title Tylerwowen pi2 Added support for pi2 Mar 25, 2015
@metachris
Copy link
Owner

Thank you! I will get a Pi 2 soon and then I'll test this PR immediately.

@tylerwowen
Copy link
Author

You are welcome. However, please notice that the PWM part is still not working on Pi 2. I had difficulties to fix that part.

@metachris
Copy link
Owner

Alright. Perhaps its worth to take a look at the ServoBlaster library, which was the starting point for the RPIO PWM module:

@metachris
Copy link
Owner

@fjbelchi
Copy link

Any progress with PWM support for Pi 2?

@WORMSS
Copy link

WORMSS commented Aug 29, 2015

Any progress with PWM support for Pi 2? Whole reason I got the Pi2 because I was told it's better than Arduino. But I got the Arduino running a simple PWM within 5 minutes. I've been on this for an hour on the Pi2 trying libraries left right and centre. ‼️

@jashort
Copy link

jashort commented Aug 29, 2015

@WORMSS I had good luck with the PWM support in the fork @tylerwowen made. I installed it from https://github.com/tylerwowen/RPIO (It's this pull request, it just hasn't been merged yet)

@tylerwowen
Copy link
Author

@WORMSS Raspberry Pi is not better for PWM. This is from the official GPIO module documentation

Note that this module is unsuitable for real-time or timing critical applications. This is because you can not predict when Python will be busy garbage collecting. It also runs under the Linux kernel which is not suitable for real time applications - it is multitasking O/S and another process may be given priority over the CPU, causing jitter in your program. If you are after true real-time performance and predictability, buy yourself an Arduino http://www.arduino.cc !

Use the official library instead, it has software PWM supports.

@jashort Did it really work for PWM? I don't think I could fix it.

@WORMSS
Copy link

WORMSS commented Aug 29, 2015

@jashort @tylerwowen thank you. I guess I will do a combination of the two then. As I think I will still need certain things that a Pi2 can offer such as nodejs (and ssh if things get really bad). So maybe a Pi2 that triggers an Arduino into action. Fingers crossed. Again, thank you.

@Xfel
Copy link

Xfel commented Nov 11, 2015

Any progress on this? As far as I see the PWM stuff does work now in ServoBlaster after this commit: richardghirst/PiBits@96014c8

So could this be adapted for this project too?

@metachris
Copy link
Owner

I wasn't aware, thanks for the heads up! If you have time to port it over,
you are more than welcome to :-)
On Nov 11, 2015 15:37, "Xfel" [email protected] wrote:

Any progress on this? As far as I see the PWM stuff does work now in
ServoBlaster after this commit: richardghirst/PiBits@96014c8
richardghirst/PiBits@96014c8

So could this be adapted for this project too?


Reply to this email directly or view it on GitHub
#56 (comment).

@cmdwiggles
Copy link

Any progress with this?
Thoroughly dissatisfied with GPIO.PWM and its ideas of 'pwm', veeerrrrry jittery outputs dont end well when mixed with drones

@alexellis
Copy link

@Xfel @metachris I can test any merge that is done from servo blaster.

If the pwm side of things is based upon the work of servoblaster - how difficult would it be to merge? Was there a lot of change to the methods/interface?

@maleadt
Copy link

maleadt commented Feb 3, 2016

Differences between servoblaster and RPIO are significant, so merging isn't a quick and easy job.

I tried porting the PWM part to RPi2, but couldn't get it to work either (it will require more than just updating the peripheral base offset). That said, servoblaster didn't really work on my Pi2: initially (first 5 seconds or so) it PWMs fine, but then the board powers-off abruptly. No oops or nothing, so I didn't try to debug. Not sure whether it's specific to my set-up or board though.
So for anybody trying to port the servoblaster Pi2 support over: make sure servoblaster itself works first.

@@ -0,0 +1,577 @@
/*
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a backup file (ends with ~ ) so should be deleted from this PR.

tylerwowen and others added 4 commits March 25, 2016 18:43
Squashed commits:
[743c229] Read cpu info to set base for Pi 2
[5c70d6a] Read cpu info to set base for Pi 2
[a372e3b] Read cpu info to set base for Pi 2
[d1bbbc4] Read cpu info to set base for Pi 2
Squashed commits:
[0511bc4] merged from upstream
[05245b5] Added Pi2 support
[ea8f276] Added Pi 2 support
[82a5d92] Added support for Pi2
[5a6727c] Added Pi 2 support

Read cpu info to set base for Pi 2

Read cpu info to set base for Pi 2

Read cpu info to set base for Pi 2

Read cpu info to set base for Pi 2
Added support for Pi2

Added Pi 2 support

Added Pi2 support

merged from upstream

encode in UFT-8
@tylerwowen tylerwowen force-pushed the tylerwowen-pi2 branch 2 times, most recently from 3266836 to c15b142 Compare March 26, 2016 02:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.