Go to advanced search

by ghp
Mon Jul 17, 2017 7:04 pm
Forum: Scratch
Topic: Explorer HAT and Scratch
Replies: 9
Views: 5730

Re: Explorer HAT and Scratch

I am planning on creating a config which combines this adapter with those in the Explorer HAT Pro config as I managed to get the HC-SR04 working plugged in the Explorer HAT Pro yesterday. (I just need to disable Input1 in the config as it is used by the HC-SR04 echo and it works fine) It is one of ...
by ghp
Mon Jul 17, 2017 8:37 am
Forum: Scratch
Topic: Explorer HAT and Scratch
Replies: 9
Views: 5730

Re: Explorer HAT and Scratch

Hello, fixed this HC-SR04 problem. Some other changes are: - For consistency reasons, there is also a change in adapter naming. - As I focus on thread handling since the changes for the scratch2 connections, an issue with thread stopping in the pigpiod connection is also corrected. In the config fil...
by ghp
Mon Jul 10, 2017 4:12 pm
Forum: Scratch
Topic: Explorer HAT and Scratch
Replies: 9
Views: 5730

Re: Explorer HAT and Scratch

Hello, scratchClient can be downloaded from http://heppg.de/ikg/wordpress/?page_id=6 Be sure you have enabled I2C in raspi-config. Follow the install instructions from the web page (should take less than 5 mins) and then cd ~/scratchClient python3 src/scratchClient.py -c explorerhat_pro For instruct...
by ghp
Sun Jul 09, 2017 1:30 pm
Forum: Scratch
Topic: Explorer HAT and Scratch
Replies: 9
Views: 5730

Re: Explorer HAT and Scratch

Hello, tried to reproduce this and using variables to control the outputs on explorer hat doesn't work here too. I maintain scratchClient and so far there was no full support for explorer hat pro. I added support for the capacitive pads, adjusted the ADC code and there is a sample config file now in...
by ghp
Mon Jul 03, 2017 4:04 am
Forum: Scratch
Topic: Release: scratch2 controls GPIO with scratchClient
Replies: 2
Views: 3199

Re: Release: scratch2 controls GPIO with scratchClient

When running experiments with scratch2 'local extensions', I found that the file name proposed by scratch2 on raspbian was project.sbx. Saving worked, but the file was not found directly (needed to use the search function) and content could not be loaded again. There was a conversation on this on bl...
by ghp
Sat Jul 01, 2017 8:12 pm
Forum: Scratch
Topic: Release: scratch2 controls GPIO with scratchClient
Replies: 2
Views: 3199

Re: Release: scratch2 controls GPIO with scratchClient

Had some time to validate scratchClient connection to scratch2 on raspbian in the download from 2017-06-21-raspbian-jessie.img. Works pretty good. The extra step needed with scratchx to bypass the need to download extensions from github is removed. start scratchClient (installation is described in h...
by ghp
Mon Jun 19, 2017 5:27 pm
Forum: Scratch
Topic: Pi Scratch new for free download now
Replies: 41
Views: 16473

Re: Pi Scratch new for free download now

Hello, these small moves are 'jitter', caused by not perfect timing in the python code. You notice this too in the video. Current support for dma based adapters are by a RPIO2 library, config file is config_dma_servo.xml Look in the doc, as this needs an additional install step. Or choose servoblast...
by ghp
Mon Jun 19, 2017 4:30 am
Forum: Scratch
Topic: Pi Scratch new for free download now
Replies: 41
Views: 16473

Re: Pi Scratch new for free download now

Hello, the configuration you use in scratchClient config_gpio_servo.xml uses basically the same rpi.gpio pwm commands as your python program. I'd recommend to delete the ~/scratchClient folder from your sd card. Also delete files like scratchClient.tar.gz from ~/ folder. Then download from web site ...
by ghp
Sun Jun 18, 2017 7:03 pm
Forum: Scratch
Topic: Pi Scratch new for free download now
Replies: 41
Views: 16473

Re: Pi Scratch new for free download now

Hello,
took the time to burn a fresh sd card, reinstall needed software and to run scratchClient. Worked as expected with the steps demonstrated.
A video is in http://heppg.de/ikg/wordpress/?p=1011 (no sound...)
Regards,
Gerhard
by ghp
Fri Jun 16, 2017 10:04 pm
Forum: Scratch
Topic: Pi Scratch new for free download now
Replies: 41
Views: 16473

Re: Pi Scratch new for free download now

To sum up, what is known: - there have been some bugs in scratchClient, when you have loaded todays version this is corrected. - when I run the code here (scratchClient + scratch) I get the pwm pulses as needed - I connect the servo to GPIO23, which is pin 16 on the header. You say that with python ...
by ghp
Fri Jun 16, 2017 8:26 pm
Forum: Scratch
Topic: Pi Scratch new for free download now
Replies: 41
Views: 16473

Re: Pi Scratch new for free download now

Hello, in case scratchClient is connecting to scratch, but no script running there: the 'for all sprites' variables are sent out to scratchClient with their current values and as the servo adapter start the pwm signals when connected these values setting the servo. When scratchClient is disconnected...
by ghp
Fri Jun 16, 2017 1:34 pm
Forum: Scratch
Topic: Pi Scratch new for free download now
Replies: 41
Views: 16473

Re: Pi Scratch new for free download now

Hello, reason for not working was my test setup here for servo: I use a transistor to extend the pi output voltage to the servo voltage level which inverts the signal. So the signals have been low/high exchanged on pi output. So it took some time to run some tests on the various servo driving scenar...
by ghp
Thu Jun 15, 2017 3:59 pm
Forum: Scratch
Topic: pi2go Use Sonar or Led
Replies: 17
Views: 7112

Re: pi2go Use Sonar or Led

adapter.gpio - WARNING - HCSR04: error code 2 (linked to the sonar, from what I read) This is from the sonar adapter. The implementation is polling the input signals from the sonar, but from time to time the response time exceeds the 25ms range. Reason is most probably thread scheduling during a me...
by ghp
Thu Jun 15, 2017 11:10 am
Forum: Scratch
Topic: Pi Scratch new for free download now
Replies: 41
Views: 16473

Re: Pi Scratch new for free download now

Hello, possibly there is a problem with your download. I added version info to the first log messages. On my test system, output is now: root@raspberrypi:/home/pi/scratchClient# python3 src/scratchClient.py -c config/config_gpio_servo.xml -v 2017-06-15 10:56:44,655 - root - INFO - create ScratchClie...
by ghp
Thu Jun 15, 2017 7:01 am
Forum: Scratch
Topic: Pi Scratch new for free download now
Replies: 41
Views: 16473

Re: Pi Scratch new for free download now

Hello,
please download latest scratchClient from http://heppg.de/ikg/wordpress/?page_id=6
This version has the problems fixed.
Regards,
Gerhard
by ghp
Wed Jun 14, 2017 11:11 pm
Forum: Scratch
Topic: pi2go Use Sonar or Led
Replies: 17
Views: 7112

Re: pi2go Use Sonar or Led

Hello, the interaction between scratch and scratchClient is done by using variables and events. If you have a look to the pi2go-adapter in localhost:8080 http://heppg.de/ikg/wordpress/wp-content/uploads/2017/06/pi2go-607x1024.png then you control the leftmost variables,( there are no events for this...
by ghp
Tue Jun 13, 2017 2:50 am
Forum: Scratch
Topic: Pi Scratch new for free download now
Replies: 41
Views: 16473

Re: Pi Scratch new for free download now

Hello,
please provide the config file in order to verify that the software works. You have hit some problems where I changed something recently and I would like to avoid that you run into additional trouble.

Regards,
Gerhard
by ghp
Mon Jun 12, 2017 5:39 pm
Forum: Staffroom, classroom and projects
Topic: Pi board ideas please
Replies: 5
Views: 4774

Re: Pi board ideas please

Hello, think this would work. The only constraint is that ssh is disabled by default for new raspbian distributions.So be prepared to boot each SD card with keyboard and monitor at least once to enable ssh. If you register the mac adresses in the network infrastructure dhcp server with fixed ip addr...
by ghp
Mon Jun 12, 2017 5:30 pm
Forum: Scratch
Topic: Pi Scratch new for free download now
Replies: 41
Views: 16473

Re: Pi Scratch new for free download now

Hello, one problem caused by a wrong formatting in an error message. It is corrected, pls download latest distribution.. The root cause is the naming of the gpio pin in the config file. Use 'GPIO00' (two zeros) till 'GPIO31' in upper case, no blanks. And only these BCM numbers which are available on...
by ghp
Sun Jun 11, 2017 6:41 am
Forum: Scratch
Topic: pi2go Use Sonar or Led
Replies: 17
Views: 7112

Re: pi2go Use Sonar or Led

Hello, had a busy time since yesterday and there is pi2go integration into scratchClient available. The config file is config_pi2go.xml in the distribution. One of the problems was to get i2c to run. The chips on the board have not been found by "i2cdetect -y 1". Had to disassemble the pi from the b...
by ghp
Sat Jun 10, 2017 5:02 pm
Forum: Scratch
Topic: pi2go Use Sonar or Led
Replies: 17
Views: 7112

Re: pi2go Use Sonar or Led

Hello,
received a copy of pi2go today and have done some first coding today. Hope to have some results the nextdays.
Regards,
Gerhard
by ghp
Fri Jun 09, 2017 4:29 am
Forum: Scratch
Topic: Pi Scratch new for free download now
Replies: 41
Views: 16473

Re: Pi Scratch new for free download now

Here a sample config and step by step procedure for servo with scratchClient. Copy this as a file config/config_gpio_servo.xml into the scratchClient folder. You see in the xml file that the PWM pin is BCM-GPIO23, adjust as needed. This adapter uses rpi.gpio, which has some jitter but should work wi...
by ghp
Thu Jun 08, 2017 4:45 am
Forum: Scratch
Topic: Pi Scratch new for free download now
Replies: 41
Views: 16473

Re: Pi Scratch new for free download now

Hello, servo usually have black (dark), red and yellow connectors. Connect 5V between black and red; connect black to rpi gnd and yellow to a gpio pin. For very small servo, it is possible to take the 5V from the gpio headers, for larger servos there is the need for an extra power supply. If you loo...
by ghp
Sat Jun 03, 2017 9:27 pm
Forum: Scratch
Topic: Pi Scratch new for free download now
Replies: 41
Views: 16473

Re: Pi Scratch new for free download now

Hello, a config file consists of one or more <adapter/> - sections. Just add the adapters as needed. Usually the adapters work without problems when combined, but be careful not to use various pwm technolgies or setting the poll rates too fast. There are some constraints e.g. on naming the adapters ...
by ghp
Sat Jun 03, 2017 4:52 pm
Forum: Scratch
Topic: Release: scratch2 controls GPIO with scratchClient
Replies: 2
Views: 3199

Release: scratch2 controls GPIO with scratchClient

Hello, the last month I worked on connecting scratch2, the web based scratch version from scratch.mit.edu and GPIO on raspberry and more. To be precise, this is done by scratch extensions using http://scratchx.org/#scratchx. This is 'the same' as scratch2, but allows to use extensions. These extensi...

Go to advanced search