Go to advanced search

by ghp
Tue Oct 17, 2017 8:40 pm
Forum: Scratch
Topic: New Scratch things for Raspbian September 2016
Replies: 26
Views: 7232

Re: New Scratch things for Raspbian September 2016

Hello, I have since long time a DHT11, DHT22 connection to scratch using an atmel328 as a slave processor. http://heppg.de/ikg/wordpress/?p=430 And since short time there is an adapter using pigpiod software. scratchClient supports both scratch1.4 and scratchx, the extension enabled version of scrat...
by ghp
Sun Sep 10, 2017 1:41 pm
Forum: Scratch
Topic: Clock pulse generation using scratch
Replies: 2
Views: 688

Re: Clock pulse generation using scratch

Hello, MHz clock rates are far beyond the capabilities of scratch. See https://github.com/Guzunty/Pi/tree/master/src/gzlib/src, gz_clock.c or http://abyz.co.uk/rpi/pigpio/examples.html#Misc_minimal_clk for code which uses GPIO4 with the hardware clock generator. I used this feature to drive external...
by ghp
Mon Aug 21, 2017 5:32 am
Forum: Scratch
Topic: Stretch + Scratch 2 + Sense HAT
Replies: 2
Views: 742

Re: Stretch + Scratch 2 + Sense HAT

Hello, think that the 'sprite to led' function in scratch1.4 is possible because gpioserver is tightly coupled with scratch. In scratch2, the extension system does not have access to sprite pixels. If you need this function, use scratch1.4 which is still available (and I hope it will not be disconti...
by ghp
Sat Aug 19, 2017 6:22 pm
Forum: Scratch
Topic: Scratch 2.0 beginner
Replies: 2
Views: 832

Re: Scratch 2.0 beginner

Hello,
checked on a pi3 and a piB with same sd-card. Both local scratch2 and web scratch2 run on a pi3, but not on a piB.
Looked to the announcement from the foundation, there is another user who reports problems with pi2.
Most probably the code is only running on the pi3 arm processor.
by ghp
Wed Aug 02, 2017 5:27 pm
Forum: Using Raspberry Pi in the classroom
Topic: Need Advice On School Project
Replies: 1
Views: 911

Re: Need Advice On School Project

Hello, basically this is not a problem. Install a web server (apache2) on your pi, locate the audio files in the www-folder and put the url to the qr-codes. But the 'student scanning the qr'-part is not clear. Usually there are mobile used for this purpose, but you need to connect the mobile with th...
by ghp
Mon Jul 17, 2017 7:04 pm
Forum: Scratch
Topic: Explorer HAT and Scratch
Replies: 9
Views: 1699

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: 1699

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: 1699

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: 1699

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: 1228

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: 1228

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: 6950

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: 6950

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: 6950

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: 6950

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: 6950

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: 6950

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: 2781

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: 6950

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: 6950

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: 2781

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: 6950

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: Using Raspberry Pi in the classroom
Topic: Pi board ideas please
Replies: 5
Views: 1513

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: 6950

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: 2781

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...

Go to advanced search