Go to advanced search

by ghp
Fri Oct 03, 2014 11:20 am
Forum: Scratch
Topic: The Beta Strikes Back; NuScratch beta release
Replies: 214
Views: 35131

Re: The Beta Strikes Back; NuScratch beta release

Today is public holiday here, and with the help of a few cups of coffee I managed to re-execute the test suite for nuscratch 9. The results are added in pdf and ods (libreoffice, openoffice spreadsheet format). There are well known problems in the list, but also new ones as test 161: duplicate sprit...
by ghp
Wed Oct 01, 2014 7:58 pm
Forum: Python
Topic: What are the issues or using Python on Windows 7
Replies: 6
Views: 1375

Re: What are the issues or using Python on Windows 7

Hello, I usually develop all my code with eclipse on a win7-machine. In eclipse, I have pyDev installed. This allows debugging. Of course, the GPIO-Modules, I2C or SPI need mockup libraries. Testing of code on RPi means to ftp it there (here, ant-scripts are convenient to pack everything as needed o...
by ghp
Mon Sep 29, 2014 2:52 pm
Forum: Python
Topic: Capacitance Meter and RC Time Constants
Replies: 11
Views: 3676

Re: Capacitance Meter and RC Time Constants

A possible problem of these designs is excessive current through the gpio pin when discharging the capacitor.
3.3V/16mA --> 206 Ohm (220 Ohm) as a series resistor is recommended to limit input current to the maximum of 16mA.

Regards,
Gerhard
by ghp
Sat Sep 20, 2014 9:33 am
Forum: Python
Topic: Using RPIO for controling dc motor speed
Replies: 15
Views: 4672

Re: Using RPIO for controling dc motor speed

Very interesting.
How is the cat /sys/module/dma/parameters/dmachans encoded ?

In my raspbian installation, it results in '32565', and I cannot clearly see what this means.

Regards,

Gerhard
by ghp
Sat Sep 20, 2014 7:32 am
Forum: Python
Topic: Using RPIO for controling dc motor speed
Replies: 15
Views: 4672

Re: Using RPIO for controling dc motor speed

Hello,

you should not use DMA channel 0.
With raspbian 2013-12-20-wheezy-raspbian, dma channel 0 is used for accelerating the X-Server.

I switched over to channel 1 in my setups, which is stable (unless someone tries to use this for other purpose).

regards,
Gerhard
by ghp
Mon Sep 08, 2014 6:24 pm
Forum: Scratch
Topic: Send and receive SMS text messages with GSM modem
Replies: 6
Views: 12832

Re: Send and receive SMS text messages with GSM modem

Hello, my scratchClient software is a framework which communicates with scratch, does some configuration, logging and has a web interface to debug and display basic events. The framework is written in python. On the side towards scratch, variables and broadcast definitions are configurable. From the...
by ghp
Wed Aug 13, 2014 6:47 am
Forum: Scratch
Topic: The Beta Strikes Back; NuScratch beta release
Replies: 214
Views: 35131

Re: The Beta Strikes Back; NuScratch beta release

Hello, I challenged my programmable mouse. For fast clicks (3 per sec), I got 44% of the events. For slow clicks (1 per sec), 99%, which is better than release 7. Both in presentation mode: 100%. Setup: release 8, counting mouse clicks on a sprite: when sprite clicked: increment counter. Scratch in ...
by ghp
Mon Aug 11, 2014 1:07 pm
Forum: Scratch
Topic: The Beta Strikes Back; NuScratch beta release
Replies: 214
Views: 35131

Re: The Beta Strikes Back; NuScratch beta release

Hello, again on mouse clicks. One of the possibilities for lost mouse clicks are bad mouse devices, or individual speed in clicking. To eliminate this, a programmable mouse is needed. Last year, I have added an arduino due to my toolbox, and remembered there is a Mouse-Library for this. So today I w...
by ghp
Sun Aug 10, 2014 1:14 pm
Forum: Scratch
Topic: The Beta Strikes Back; NuScratch beta release
Replies: 214
Views: 35131

Re: The Beta Strikes Back; NuScratch beta release

Hello, counting mouse clicks is a tedious thing. But I wanted to know a little bit more about missing click events. Setup: a sprite, a script when sprite clicked, increment counter by 1. I executed 6 groups of hundred clicks. The counter reported 86, 86, 88, 95, 90, 73 Edit: when executing this test...
by ghp
Sun Aug 10, 2014 12:46 pm
Forum: Scratch
Topic: Desktop shortcut to NuScratchBeta.sh
Replies: 4
Views: 1454

Re: Desktop shortcut to NuScratchBeta.sh

Hello, found some description of th elxde-desktop files. If you add a path-statement to the desktop file, there is no need to modify the start shell script. [Desktop Entry] Name=nsb5 Version=1.0 Type=Application Exec=sh -c /home/pi/nsb5/NuScratchBeta.sh Path=/home/pi/nsb5 Icon=scratch Terminal=false...
by ghp
Fri Aug 08, 2014 3:31 pm
Forum: Scratch
Topic: The Beta Strikes Back; NuScratch beta release
Replies: 214
Views: 35131

Re: The Beta Strikes Back; NuScratch beta release

Hello, have taken some time to execute some test cases with new scratch. In general, progress is visible and many things work really good. The doubleclick performance is not perfect, as in few cases this 'doubleclick-event' is lost. You see this in file selection dialog, when doubleclicking folders ...
by ghp
Wed Aug 06, 2014 6:20 pm
Forum: Scratch
Topic: Desktop shortcut to NuScratchBeta.sh
Replies: 4
Views: 1454

Re: Desktop shortcut to NuScratchBeta.sh

Hello, in my setup, the scratch things are in a folder /home/pi/nsb5. For this, the following entries are working. in home/pi/Desktop, place a file named nsb5.desktop [Desktop Entry] Name=nsb5 Version=1.0 Type=Application Exec=sh -c /home/pi/nsb5/NuScratchBeta.sh Icon=scratch Terminal=false Categori...
by ghp
Mon Aug 04, 2014 7:53 pm
Forum: Scratch
Topic: Is it the samething as the website?
Replies: 5
Views: 1694

Re: Is it the samething as the website?

Even more cool: you can run scratch 1.4 on win pc, and a hardware client (e.g. my scratchClient software) on RPi. Connection is by network. Best of both worlds. The only not so cool point in this setup: the upcoming lightning fast scratch is in some areas even faster than my win pc. To be honest: th...
by ghp
Mon Aug 04, 2014 5:04 am
Forum: Scratch
Topic: Is it the samething as the website?
Replies: 5
Views: 1694

Re: Is it the samething as the website?

Hello, the scratch website http://scratch.mit.edu features a flash based version of scratch version 2. On raspberry, you have scratch version 1.4, based on smalltalk(squeak). The flash based version 2 does not run on raspberry, and this version does not allow to connect to hardware. Version 1.4 runs...
by ghp
Sat Aug 02, 2014 8:54 am
Forum: Scratch
Topic: The Beta Strikes Back; NuScratch beta release
Replies: 214
Views: 35131

Re: The Beta Strikes Back; NuScratch beta release

I am currently working of a stepper motor integration in my scratchClient software. Unfortunately, this revealed another bug in nuscratch5: Scenario: in a loop, I calculate float values in a global variable and send them to scratchClient. Instead of receiving decimal values, scratchClient receives s...
by ghp
Sat Jul 26, 2014 7:35 pm
Forum: Scratch
Topic: Send and receive SMS text messages with GSM modem
Replies: 6
Views: 12832

Send and receive SMS text messages with GSM modem

Hallo, recently I bought an instance of adafruit's SIM800 breakout board 'fona'. This board allows for sending and receiving of SMS text messages (and a lot of other functionality, of course. But I covered only the text messages for scratch.). For the text messages, I added an adapter for my scratch...
by ghp
Sat Jul 12, 2014 7:48 am
Forum: Scratch
Topic: scratchClient displays connection status with a LED
Replies: 0
Views: 911

scratchClient displays connection status with a LED

Recently added a new feature to my scratchClient software http://heppg.de/ikg/wordpress/?page_id=4 : display the state of the scratch connection with an attached GPIO LED. In my school workshop, it was not always obvious if the kids have started the scratchClient software. As the adapter board we us...
by ghp
Sat Jul 05, 2014 1:11 pm
Forum: Python
Topic: interrupt in raspberry pi gpio
Replies: 1
Views: 844

Re: interrupt in raspberry pi gpio

Hello,

you already have the solution: just remove this line of code.
os.system is a quite high overhead to have just a date printed on screen. It starts a new process, invokes date. The datetime module might be more efficient.

Regards,
Gerhard
by ghp
Sat Jul 05, 2014 12:51 pm
Forum: Deutsch
Topic: PWM Python Probleme
Replies: 2
Views: 6291

Re: PWM Python Probleme

Hallo, habe den code mal ausprobiert und bis auf ein paar nicht-lesbare Zeichen hat das auch funktioniert. # -*- coding: utf-8 -*- import RPi.GPIO as GPIO #This line alone caused 90 minutes of frustration import time GPIO.setmode(GPIO.BOARD) GPIO.setup(21, GPIO.OUT) #set pin 21 to output p = GPIO.PW...
by ghp
Wed Jun 25, 2014 8:51 pm
Forum: Python
Topic: Transferring Projects
Replies: 4
Views: 1402

Re: Transferring Projects

Hello, I usually develop python code on my laptop in eclipse, using pydev as a plugin. Advantage is the build in debugger, and ant script support to distribute code. Then I send the files 'as is' to raspberry with ftp (filezilla is the tool to choose) and execute there. The only problems are: - in w...
by ghp
Wed Jun 25, 2014 8:44 pm
Forum: Python
Topic: What web framework do you guys prefer?
Replies: 4
Views: 1869

Re: What web framework do you guys prefer?

Hello,

I use cherrypy embedded in my scratchClient to monitor low level events and config files.
Nice documentation, quick ramp up and a world of ciiustomizations if needed.

Regards,
Gerhard
by ghp
Mon Jun 23, 2014 8:53 pm
Forum: Scratch
Topic: Scratch presentation mode
Replies: 1
Views: 1555

Re: Scratch presentation mode

Hello, presentation mode is double the size of usual stage. It does not scale to screen size. Usual stage is 480 * 360. Presentation mode is 960*720, where scaling is done by simply doubling each pixel. If you want it full screen, you need to adjust screen size close to the presentation mode stage s...
by ghp
Mon Jun 23, 2014 6:50 pm
Forum: Scratch
Topic: The Beta Strikes Back; NuScratch beta release
Replies: 214
Views: 35131

Re: The Beta Strikes Back; NuScratch beta release

Hello, you asked for startup times:
Startup time on my machine: prox 5 secs Model B, overclock 1GHz).

If I could vote for one of the next problems to be solved, I would ask for I18N. Without this, I can't bring it to my school project. Where next session is in a week from today.

Regards,
Gerhard
by ghp
Sat Jun 21, 2014 12:25 pm
Forum: Scratch
Topic: The Beta Strikes Back; NuScratch beta release
Replies: 214
Views: 35131

Re: The Beta Strikes Back; NuScratch beta release

the pretty framing of the mouse x/y indicators seems to disappear. Hello, at least the 'disappear' can be reproduced. Open new project, and drag 'cat' out of the stage, of course drop it in the right, lower edge so the animated 'run back path' goes through the xy-display. In not all cases, but some...
by ghp
Thu Jun 19, 2014 4:55 pm
Forum: Scratch
Topic: The Beta Strikes Back; NuScratch beta release
Replies: 214
Views: 35131

Re: The Beta Strikes Back; NuScratch beta release

(continued from last post) ... three increments in a sequence. This is done to find out if the 'change by' block has special handling. multiple_inc.gif The result is, when executed multiple times sensor-update "a" 44 sensor-update "a" 47 sensor-update "a" 50 sensor-update "a" 53 So only every third ...

Go to advanced search