... and there it is. https://www.raspberrypi.org/blog/a-new- ... dded-gpio/timrowledge wrote:I've provided a big chunk of info to the folk at Pi Towers and it ought to appear somewhere soon !
Could you please runGeekTeacher wrote:Hi, is it possible to upgrade the Scratch suppiled in Wheezy to the new version with gpio support? Any details of how to install it appreciated.
Code: Select all
sudo apt-get update
Code: Select all
apt-cache policy nuscratch
If this is useful, this is what I get when I run that code...ShiftPlusOne wrote:Could you please runGeekTeacher wrote:Hi, is it possible to upgrade the Scratch suppiled in Wheezy to the new version with gpio support? Any details of how to install it appreciated.and then provide the output ofCode: Select all
sudo apt-get update
Code: Select all
apt-cache policy nuscratch
dmoss wrote:If this is useful, this is what I get when I run that code...
Code: Select all
Installed: 20150114-1
Candidate: 20150916
Code: Select all
sudo apt-get update
sudo apt-get dist-upgrade
Well, sorta-kinda. The PiLite is currently supported and that uses serial comms via gpio pins BUT it also requires some rather involved config stuff on your Pi.Fjl wrote:Is it possible now to use RPi serial port on GPIO14 & GPIO15 with new Scratch commands?
Hmm, that's odd.iw1 wrote:I like the improvements. Thank you.
I've only found one problem so far. When I 'save picture of scripts' the file that's generated shows an error when I try to display it: "GIF file was missing some data (perhaps it was truncated somehow?)".
I suspect this will be a trivial problem to fix.
Ah, but you can do that yourself and it should be trivial. You have full control over the pins; you (almost certainly) don't need any special driver at all. The caveat is that you may be speed limited when using a script to do it all. Depends. You can easily drive a Ryantek motor board direct from the gpio as well, for example.Michael_O wrote:[Copied from blog comments at Tim's suggestion]The first is stepper motor control which is very useful. I drive a stepper motor through a ULN2803 chip directly from the GPIO pins. It would be great if I could do this in the new Scratch.
So you'd want a way to set the pwm frequency? I *think* wiringPi can support that. Hmmm... looks plausible.Michael_O wrote:The second point is more technical. PWM is often fixed at 100Hz or higher and this is fine for things like dimming LEDs but when you want to control DC motors the frequency becomes important; at low power factors such motors simply stall. The solution is to run them at more like 10Hz so that the motor is getting decent bursts of power and it is possible to control down to a few revs per second.
Good grief, so it does. That's a trivial typo that's been there a long time. I'll fix it ...iw1 wrote:Clicking either 'Compute' or 'pi' (current user) open up the appropriate folder but clicking on 'Desktop' opens up the current user's home folder (i.e. same effect as second option) not the desktop folder.
Not quite so straightforward as this unfortunately. LibreOffice on both a Pi and a Windows 7 computer will also load the gif saved from the version of Scratch supplied with Jessie but, like the Raspian image viewer, Microsoft ImageViewer won't display it, neither can it be inserted into a Microsoft Word document, an error being reported. Microsoft Paint will load it but with a black background.timrowledge wrote:Hmm, that's odd.iw1 wrote:I like the improvements. Thank you.
I've only found one problem so far. When I 'save picture of scripts' the file that's generated shows an error when I try to display it: "GIF file was missing some data (perhaps it was truncated somehow?)".
I suspect this will be a trivial problem to fix.
a) it used to work and nothing has been changed in that area
b) the gif opens perfectly well on my iMac
c) the gif opens perfectly in another Squeak system
So I'm forced to the conclusion the Raspbian provided image viewer has an issue
Oh dear. Well there's another bug to work on; I guess the library used for exporting images has been 'improved' somewhere.ghp wrote:the gif problem seems to be some sort of interop problem.
It is also possible to import the script-gif to a sprite.IMHO the gifs are ok.
Users browsing this forum: No registered users and 2 guests