Go to advanced search

by ghp
Mon Feb 03, 2014 6:51 am
Forum: Scratch
Topic: [SOLVED]scratchGPIO & PIringo :pin26 GPIO7& wait not working
Replies: 7
Views: 2489

Re: scratchGPIO & PIringo :pin26 GPIO7 & wait not working

Hello, for logging in python, there is a build in 'logger' package which does almost everything needed. If you print out the broadcast events from scratch, you will be able to identify the problems in your setup. I wanted to see the scratch code, as I could not see the 'reset' of the led-variables. ...
by ghp
Sun Feb 02, 2014 8:22 am
Forum: Scratch
Topic: [SOLVED]scratchGPIO & PIringo :pin26 GPIO7& wait not working
Replies: 7
Views: 2489

Re: scratchGPIO & PIringo :pin26 GPIO7 & wait not working

Hello, so far I did not experience problems when developing scratch on windows (1.4, of course) and running it on Pi. The pseudocode looks good, but what I miss is the place where the led-variables are reset. If you have executed the code once, the led-variables are already '1' and you will not see ...
by ghp
Sat Feb 01, 2014 10:05 am
Forum: Scratch
Topic: A new Scratch; pre-alpha-this-will-hurt release
Replies: 91
Views: 32038

Re: A new Scratch; pre-alpha-this-will-hurt release

Hello, some remarks on NuScratch-rel2. This is not a 'full test', just some observations. Editing values in boxes - as already mentioned, there is no cursor visible. But editing is basically working. Dragging boxes into a forever loop - worked most times. One time I lost this box (not showing up ins...
by ghp
Fri Jan 31, 2014 8:17 am
Forum: Advanced users
Topic: GPIO Simple Button
Replies: 3
Views: 1160

Re: GPIO Simple Button

Hello, an input range up to 3.3 V will not harm the PI, but it is generally a good idea to have a series resistor of 1k with a button. This is just a precaution in case the GPIO pin is configured as an output. Personally I prefer to have buttons from GPIO to series resistor to ground. Do not forget ...
by ghp
Thu Jan 30, 2014 9:42 pm
Forum: Advanced users
Topic: automated test tool "sikuli" on pi ?
Replies: 0
Views: 1203

automated test tool "sikuli" on pi ?

Hello, I am looking for an automated test tool which allows for recording mouse and keyboard events (and playback, of course. And it should run on raspbian, lxde desktop. Want to build a test suite for a tool, where I found problems after quite long time of usage. In order to repeat the situation, I...
by ghp
Wed Jan 29, 2014 5:10 am
Forum: Scratch
Topic: A new Scratch; pre-alpha-this-will-hurt release
Replies: 91
Views: 32038

Re: A new Scratch; pre-alpha-this-will-hurt release

New release out, and unfortunateley I have no spare time till the weekend. I will post feedback then.
by ghp
Thu Jan 23, 2014 10:37 pm
Forum: Scratch
Topic: fun project: remote controlling scratch
Replies: 4
Views: 2112

Re: fun project: remote controlling scratch

Hello, description and setup is in the pdf, chapter 6.3. Sample configuration, instructions, scratch project , network server is in the code distribution. You need two computers for this, as scratch always uses same socket 42001. Code runs on windows too, as the involved adapters do not have depende...
by ghp
Thu Jan 23, 2014 6:40 am
Forum: Scratch
Topic: Programming the Pi, what next after Scratch?
Replies: 9
Views: 4108

Re: Programming the Pi, what next after Scratch?

Hello, scratch is really nice for rapid prototyping. People learn to code with it and experiment with the fundamentals. Beyond scratch I have seen nothing comparable, unless you go into a closed environment / highly specialized IDE. I would recommend to switch to python, using the python games libra...
by ghp
Thu Jan 23, 2014 6:32 am
Forum: Scratch
Topic: Which Scratch is easier to extend?
Replies: 16
Views: 5618

Re: Which Scratch is easier to extend?

Hello, scratch on its own is Version 1.4 on RPi. It has no build in hardware connections by itself, but can do this by an external client code. The new scratch version from Tim Rowledge is a faster implementation, but functionally the same. It is quite buggy at the moment. I would not recomment usin...
by ghp
Fri Jan 17, 2014 8:09 pm
Forum: Scratch
Topic: STICKY: Bugs and regressions
Replies: 41
Views: 53413

Re: Bugs and regressions

Checked with my installation and 'works for me'. raspbian 2013-12-20, scratch 20131202.
by ghp
Fri Jan 17, 2014 9:56 am
Forum: Scratch
Topic: Scratch & camera module
Replies: 10
Views: 6235

Re: Scratch & camera module

ghp wrote:Can't be used in scripts, just for the creation of new costumes. Hmm, maybe we should do something about that. Hmm, hmm. I do not see the need for embedding this in scripts. In 1.4, this is a mechanism to build sprites, similiar to audio records. Scripted recordings of any type also impos...
by ghp
Thu Jan 16, 2014 10:21 pm
Forum: Staffroom, classroom and projects
Topic: £600... what would you order?
Replies: 25
Views: 3985

Re: £600... what would you order?

Consequently, I suppose I could connect directly to the wired network points?
Yes. But give it a test.
by ghp
Thu Jan 16, 2014 5:34 pm
Forum: Scratch
Topic: Scratch & camera module
Replies: 10
Views: 6235

Re: Scratch & camera module

Hello,

in scratch, go to a sprites 'costume' tab, and in 'new costume', press 'camera'.
Can't be used in scripts, just for the creation of new costumes.

Greetings
Gerhard
by ghp
Thu Jan 16, 2014 5:31 pm
Forum: Staffroom, classroom and projects
Topic: £600... what would you order?
Replies: 25
Views: 3985

Re: £600... what would you order?

Network depends on your needs aka the school policy for internet. - no internet allowed, no intranet allowed, no need for connections for the curriculum: leave them standalone. - no internet allowed, no intranet allowed, but need for connections for the curriculum: place another RPi with webserver o...
by ghp
Thu Jan 16, 2014 6:18 am
Forum: Staffroom, classroom and projects
Topic: £600... what would you order?
Replies: 25
Views: 3985

Re: £600... what would you order?

Hello, Monitor, I prefer the ASUS VE228HR. Audio included. Image is acceptable. SD Cards, prepare to have at least two per Pi. When you update operating system and/or system settings offline (outside school times), it can be a challenge to finalize these till next event. With two cards per PI, leave...
by ghp
Wed Jan 15, 2014 8:00 pm
Forum: Scratch
Topic: Automatically Host Mesh when starting Scratch
Replies: 5
Views: 2901

Re: Automatically Host Mesh when starting Scratch

Hello, think the only solution is to have an external (scratch-)client sending the start code, unless you are willing to tweak scratch. . Either use simplesi's solution, or try this http://www.heppg.de/ikg/administration/pi/scratchClient/doc/scratchClient.pdf http://www.heppg.de/ikg/administration/p...
by ghp
Tue Jan 14, 2014 11:45 am
Forum: Scratch
Topic: A new Scratch; pre-alpha-this-will-hurt release
Replies: 91
Views: 32038

Re: A new Scratch; pre-alpha-this-will-hurt release

eben wrote: Could you please share the file you created, so Tim can do some debugging?
Eben
I have added the file to my post.
Btw: extension 'sb' is not allowed for the forum, is there a chance to allow this ?
by ghp
Tue Jan 14, 2014 6:09 am
Forum: Scratch
Topic: A new Scratch; pre-alpha-this-will-hurt release
Replies: 91
Views: 32038

Re: A new Scratch; pre-alpha-this-will-hurt release

Good morning, created a project on RPi, moved this to windows and did not read in correctly. error.png Wanted to check the remote connections, but can't enable the connections (right click on sensing, variables does not work). Greetings, Gerhard edit: added the scratch projekt. xxx.zip unpack please
by ghp
Mon Jan 13, 2014 8:07 pm
Forum: Scratch
Topic: A new Scratch; pre-alpha-this-will-hurt release
Replies: 91
Views: 32038

Re: A new Scratch; pre-alpha-this-will-hurt release

Hello, I did not do a systematic test, but here are some findings: start up: ok language setting: fail (wrong utf8) sounds (play drum): fail (no sound) sound: /dev/dsp: No such file or directory move (ok) pen move and draw (ok) drag and drop (works but not perfect) snap a block into a forever contro...
by ghp
Sun Jan 12, 2014 6:00 pm
Forum: Scratch
Topic: Automatically Host Mesh when starting Scratch
Replies: 5
Views: 2901

Re: Automatically Host Mesh when starting Scratch

Hello, what I understand from your post is: you want to run scratch on a RaspberryPi with no keyboard or mouse attached. Scratch should automagically start, with remote sensor connections enabled. There is a description for this problem in http://www.penguintutor.com/news/raspberrypi/scratchautostar...
by ghp
Sun Jan 12, 2014 1:15 pm
Forum: Scratch
Topic: The Magpi - Scratch articles in first 18 issues.
Replies: 1
Views: 1279

Re: The Magpi - Scratch articles in first 18 issues.

Hello,

good work ! Had a lot of fun this morning reading this.

Gerhard
by ghp
Tue Jan 07, 2014 7:09 pm
Forum: Scratch
Topic: scratch talking to external process
Replies: 8
Views: 4650

Re: scratch talking to external process

Update: there is a possible flaw in the spi frequency setting: in scratchClient/src/adapter/spiAdapter.py, line 66, change the freq to 2000000. Should look like def writeValue(self, spi, channel, data): spi.max_speed_hz = 2000000 # print(data) r = spi.xfer2(data) return r This should give reproducib...
by ghp
Tue Jan 07, 2014 5:48 am
Forum: Scratch
Topic: scratch talking to external process
Replies: 8
Views: 4650

Re: scratch talking to external process

Hello, thank you for the feedback. The code was developed in the last months during my daily travel to work in train on a windows machine. This is the reason for the strange import statements, hiding errors when libs are not available. The usage in my classroom group is always with scratch and scrat...
by ghp
Mon Jan 06, 2014 2:36 pm
Forum: Scratch
Topic: scratch talking to external process
Replies: 8
Views: 4650

Re: scratch talking to external process

Hello, I made some changes in my scratchClient and added something which I called WS2801_Adapter. It is not fully tested, as I do not own a led stripe. But when you look into the code, you will find your way. Download latest code from http://www.heppg.de/ikg/administration/pi/scratchClient/download/...
by ghp
Sat Jan 04, 2014 12:15 pm
Forum: Scratch
Topic: scratch talking to external process
Replies: 8
Views: 4650

Re: scratch talking to external process

Hello, when 'remote sensor connections' in scratch are enabled, scratch opens a port 42001 and waits for clients to connect. Communication packets start with 4 byte binary length information and then plain text string. Length is length of text string. Scratch sends: - broadcast <name> whenever scrat...

Go to advanced search