{"id":6,"date":"2014-01-24T19:18:57","date_gmt":"2014-01-24T19:18:57","guid":{"rendered":"http:\/\/heppg.de\/ikg\/wordpress\/?page_id=6"},"modified":"2018-11-19T19:46:23","modified_gmt":"2018-11-19T18:46:23","slug":"scratchclient-download","status":"publish","type":"page","link":"https:\/\/heppg.de\/ikg\/wordpress\/?page_id=6","title":{"rendered":"scratchClient Download"},"content":{"rendered":"<h1>scratchClient-Software<\/h1>\n<p>scratchClient is software especially for raspberryPi which allows scratch 1.4\u00a0 or scratch 2 to use hardware on the pi.<br \/>\nscratchClient is written in python, so no compiling step is needed.<\/p>\n<p>Installation and usage instructions are in the documentation.<br \/>\nSamples are in the code distribution.<\/p>\n<p>Download code distribution:<br \/>\n<a title=\"python scripts\" href=\"http:\/\/heppg.de\/download\/scratchClient\/scratchClient.tar.gz\">scratchClient.tar.gz<\/a><\/p>\n<p>Documentation is included in the download. Here are direct links:<br \/>\n<a title=\"dokumentation\" href=\"http:\/\/www.heppg.de\/download\/scratchClient\/doc\/scratchClient.pdf\">scratchClient documents (pdf)<\/a><br \/>\n<a href=\"http:\/\/www.heppg.de\/download\/scratchClient\/doc\/html\/scratchClient.html\">scratchClient documents (html)<\/a><\/p>\n<p>Quick install procedure. Please note the quite long line in the script. Be sure to copy till the end of line.<br \/>\npython3 is recommended to run scratchClient.<br \/>\npython2 should not be used.<\/p>\n<pre><code>cd ~\r\nwget -O scratchClient.tar.gz http:\/\/heppg.de\/download\/scratchClient\/scratchClient.tar.gz\r\ntar xzf scratchClient.tar.gz\r\nchmod +r -R scratchClient\/\r\nsudo apt-get update\r\nsudo apt-get install python-pip  python-dev  python-smbus \r\nsudo apt-get install python3-pip python3-dev python3-smbus \r\nsudo pip  install tornado mako==1.0.6 spidev pyserial intelhex\r\nsudo pip3 install tornado mako==1.0.6 spidev pyserial intelhex\r\n<\/code><\/pre>\n<hr \/>\n<p style=\"padding-left: 60px;\"><em><strong>Incompatibility Issue:<\/strong><br \/>\nWith the newest tornado versions 5.0.x, there is an incompatibility with older scratchClient releases.<br \/>\nThe problem is: scratchClient is working with scratch 1.4, but data from scratchClient to scratch2 are not transferred.<br \/>\n<\/em><em>How to find out if you are affected: Please check scratchClient version and tornado version<br \/>\n<\/em><\/p>\n<pre style=\"padding-left: 60px;\"><em>python3 src\/scratchClient.py -version\r\npip3 freeze | grep tornado<\/em><\/pre>\n<p style=\"padding-left: 60px;\">\u00a0<em>If you have tornado 5.0.x and scratchClient before 2018-04-02, then either update scratchClient to latest (be sure to make a backup copy of your configurations) or downgrade tornado to 4.5.3.<\/em><\/p>\n<pre style=\"padding-left: 60px;\"><em>sudo pip3 uninstall tornado\r\nsudo pip3 install tornado==4.5.3<\/em><\/pre>\n<hr style=\"padding-left: 60px;\" \/>\n<p>&nbsp;<\/p>\n<p>Change history:<\/p>\n<p>2018-11-19\u00a0 added MPR121 device.<br \/>\n2018-11-19\u00a0 removed perpetual scratch 1.4 connection reminder.<br \/>\n2018-11-19\u00a0 bugfix value conversion scratch2 int values and other fixes for value conversions.<br \/>\n2018-11-15\u00a0 added gps adapter for GY_GPS6MV2 provided by SFYRAKIS.<br \/>\n2018-11-15\u00a0 favicon 404 error corrected.<br \/>\n2018-11-14\u00a0 Logging config file can be defined on command line. Add NotificationHandler class.<br \/>\n2018-11-11\u00a0 Value conversion error for servo, pwm in arduino adapter fixed.<br \/>\n2018-11-10\u00a0\u00a0 web application start\/stop restructure to handle tornado 5.x better.<br \/>\n2018-11-01W1_DS1820: slight changes in log messages.<br \/>\n2018-04-02\u00a0\u00a0 added compatibility support for tornado release 5<br \/>\n2018-02-25\u00a0\u00a0 changed scratch2 extension loader; changed some conversions in arduino_uno script<br \/>\n2018-02-18\u00a0\u00a0 bugfix in javascript for adapter display.<br \/>\n2018-02-17\u00a0\u00a0 config for config_camjam_edukit added (experimental, could not test<br \/>\n2018-02-16\u00a0 config tool arduinoUNO, do not allow &#8221;undef&#8221; as a name; scratch2Extension, special handling of &#8221;undef&#8221; events or names<br \/>\n2018-02-13\u00a0\u00a0\u00a0 config tool for arduinoUno: remember command line file for save operation. Changed scratch2 extension to name-value pairs<br \/>\n2018-02-11\u00a0\u00a0\u00a0 various experiments with scratch2 extension<br \/>\n2018-02-05\u00a0\u00a0\u00a0 bugfix in scratchClientServer: scratch2 connection used orphaned dictionary which stored the name-&gt;id-relation, but was never checked for existing names<br \/>\n2018-02-04\u00a0 added scratch2 extension installer: scratchClient\/tools\/scratch2connection\/install.py<br \/>\n2018-01-28\u00a0\u00a0 scratch2 connection: made js-code labels independent from variable names.<br \/>\n2018-01-28\u00a0\u00a0 arduino uno sketch: Bugfix 0xff eeprom code<br \/>\n2018-01-26\u00a0\u00a0 Bugfix: python3 bytes, bytebuffer handling corrected.<br \/>\n2018-01-25\u00a0 Bugfix: python2-&gt;3 incompatibility in arduino UNO adapter in combination with older arduino firmware.<br \/>\n2018-01-24\u00a0 Bugfix: python2-&gt;3 incompatibility in arduino UNO adapter solved.<br \/>\n2018-01-22\u00a0 Bugfix: version date now automatically matches first entry in changes.<br \/>\n2018-01-07\u00a0 Documentation, added adapter.gpio.GpioMotorPWM to configuration of adapters.<br \/>\n2017-12-21 Bugfix: wedo adapter, Enrico Gallo reported bugs in setting tilt sensor.<br \/>\n2017-11-19 Bugfix: corrected error message in stepper module.<br \/>\n2017-10-17 dht11 based on pigpiod.<br \/>\n2017-10-11 pwm adapter using pigpiod.<br \/>\n2017-10-10 Bugfix in socket singleton again; dma_pwm bug fixes when values overflow.<br \/>\n2017-10-09 Bugfix in socket singleton; python3 compatibility in various modules<br \/>\n2017-10-08 the with-loglevel does not work; workaround increase log level on &#8220;connected&#8221; to warning<br \/>\n2017-07-17 bugfix HCSR04-adapter; renamed class adapter.pigpiod.HC_SR04_Adapter to adapter.pigpiodAdapter.HC_SR04_Adapter<br \/>\n2017-07-08 add CAP1208, add ExplorerHatPro config<br \/>\n2017-07-01 add description of scratch2\/raspbian to web docu. Add hotkeys for java arduinoUNO config tool.<br \/>\n2017-06-29 add configuser dir to search path in -c option<br \/>\n2017-06-20 arduinoUNO arduino program: handles unitialized eeprom as empty<br \/>\n2017-06-17 bugfix scratchClientConfig, counter-pullup not handled correctly<br \/>\n2017-06-17 bugfix scratchClientConfig, baud rate not set, a6,a7 analog in not generated xml<br \/>\n2017-06-16 gpio, pwm servo, corrected rate calculation<br \/>\n2017-06-15 scratch 1.4 usage hints for web page<br \/>\n2017-06-15 arduinoUNO adapter, ident handling added<br \/>\n2017-06-13 bug fixes in error messages for gpio handling in config<br \/>\n2017-06-10 pi2go config and adapters ADC_DAC_PCF8591 and Gpio_HCSR04_OnePin_Input<br \/>\n2017-05-27 lirc IR receive adapter.<br \/>\n2017-04-21 sonic pi adapter added<br \/>\n2017-04-06 mqtt-adapter with optional username, password<br \/>\n2017-03-19 Minecraft-Adapter for pi, based on mcpi-library<br \/>\n2017-03-13 added SCROLL PHAT HD-Adapter and sample scratch script<br \/>\n2017-03-13 added MICRO DOT PHAT-Adapter<br \/>\n2017-03-04 added mqtt-adapter.<br \/>\n2017-02-27 arduino.ino, added counter function, changes in config tool.<br \/>\n2017-02-14 singleton-ipc, added; added command line switch to select singleton logic<br \/>\n2017-02-13 singleton-pid, redesign, changes in shutdown logic<br \/>\n2017-02-12 UNO_Adapter, reconnect logic reworked; arduinoUno with added &#8220;disconnect&#8221;-command<br \/>\n2017-02-10 config tool to edit UNO_Adapter xml config files included.<br \/>\n2016-12-19 arduino nano used as neopixel driver<br \/>\n2016-12-01 pico2wave tts adapter2016-10-30 bugfix adapter.arduino.UNO_Adapter (usage of analog pins on arduino for digital io)<br \/>\n2016-09-26 optional parameters for servo adapter DMA_PWMServo<br \/>\n2016-08-19 added hc-sr04 sensor based on pigpiod<br \/>\n2016-08-14 added lego wedo2 adapter<br \/>\n2016-07-31 added openweathermap-api access<br \/>\n2016-06-05 added config file config_AT42QT1070<br \/>\n2016-05-30 Adapter GpioButtonInput is deprecated, use GpioEventInput instead<br \/>\n2016-05-28 fixed bug in GpioEventInput (inverse did not work)<br \/>\n2016-05-22 DS1820-Adapter, added error messages<br \/>\n2016-05-21 UNO_Adapter, for posix systems: added an exclusive lock to serial connection<br \/>\n2016-04-17 removed a flaw in accessing files.<br \/>\n2016-03-28 added twitter adapter.<br \/>\n2016-03-25 added arduino adapter for LEGO powerfunctions.<br \/>\n2016-03-19 added support for external speech recognition adapter.linux.Linux_ASR_Adapter.<br \/>\n2016-03-07 added aplay and arecord command adapter.<br \/>\n2016-02-29 bugfix RPIO2 library: pwm to zero did not reliably switch off when fullscale to zero.<br \/>\n2016-02-28 ident code for arduino sketch.<br \/>\n2016-02-21 performance optimizations in arduinoUNO adapter and arduino sketch.<br \/>\n2016-02-15 added servo capability for arduinoUNO-adapter, reworked reconnect policy for this adapter.<br \/>\n2016-01-02 dma based PWM added, gpioLib-switch removed.<br \/>\n2015-12-09 bug fixes in pwm-servo; value range checks added.<br \/>\n2015-11-16 pianoHat Adapter added.<br \/>\n2015-11-16 bugfix in GpioInput-Adapter.<br \/>\n2015-11-12 added blink(1)<br \/>\n2015-09-26 added senseHat-adapter LED, environmental, IMU<br \/>\n2015-08-03 RFID-Reader adapter added<br \/>\n2015-08-01 pico board adapter added<br \/>\n2015-07-17 GpioValueInput-Adapter added. Allows to send predefined values on low\/high<br \/>\n2015-07-14 MCP3008<br \/>\n2015-07-09 error recovery strategy for scratch 1.4<br \/>\n2015-jan-15, issue#136<br \/>\n2015-05-25 added arduinoUNO adapter.<br \/>\n2015-05-23 system time adapter added<br \/>\n2015-05-18 added technical documentation for adapters.<br \/>\n2015-05-05 piFace support, piGlow support<br \/>\n2015-05-03 solved display issues in GUI for multiple scratch variables into one adapter method; added PCA9865; removed bugs in MCP23S17. Refactoring the i2c-system.<br \/>\n2015-04-19 removed bug in positioning popup editor in adapter display<br \/>\n2015-04-11 added DHT22 with atmega328-coprocessor; added smartphone positional sensors<br \/>\n2015-03-28 added atmel-328 adapter for hc-sr04<br \/>\n2015-03-16 added operation system command adapter<br \/>\n2015-03-16 added half-bridge motor adapter<br \/>\n2015-03-14 added MCP23S17-adapter (piface)<br \/>\n2015-03-01 usb barcode scanner added.<br \/>\n2015-02-12 &#8216;servoblaster&#8217; adapter added.<br \/>\n2015-01-04 removed quote-handling-problem in broadcast name strings.<br \/>\n2014-12-22 added a lookup strategy for config files which allows for simpler command line syntax.<br \/>\n2014-12-17 namevalueparser, corrected for quote in name.<br \/>\n2014-12-13 worked on python3 compatibility; changed package structure.(adapter.adapter-&gt;adapter.adapters); fixed codepage conversion problems in web access.<br \/>\n2014-11-14 Added DS1820 adapter.<br \/>\n2014-10-17 Modified help output.<br \/>\n2014-10-03 modified socket code, outgoing to better handle utf8 strings; modified test adapter with different data types.&#8217;<br \/>\n2014-09-20 changed dma channel to 4<br \/>\n2014-09-01 Added BH1750 Luminosity Sensor, i2c bus<br \/>\n2014-08-29 GpioInput, fixed &#8220;inverse&#8221;-Problem.<br \/>\n2014-08-08 texttospeech, fixed an exception problem.<br \/>\n2014-08-03 renamed ADCInput to ADC_MCP3202_10_Input.<br \/>\n2014-08-01 bug fix for activation of adapters.<br \/>\n2014-07-30 renamed adapter.stepper.Stepper to adapter.stepper.BipolarStepper\\<br \/>\nadded adapter.stepper.UnipolarStepper<br \/>\n2014-07-26 added \\&#8217;changes\\&#8217; command line switch.<br \/>\n2014-07-26 added SIM800 GSM Modem support.<br \/>\n2014-07-12 added GpioStateOutput-Adapter. Allows for connection status monitoring.<br \/>\n2014-06-19 performance improvements.<br \/>\n2014-06-13 added performance test adapter. Refined error handling for configuration.<br \/>\n2014-05-30 corrected handshake in atmel-328-irc-adapter for atmel-328-firmware.<br \/>\n2014-03-31 fixed config file config_ikg_7segment.xml; added error checks in reading xml files.<br \/>\n2014-03-12 changed data receive logic\/process dataraw to be more robust. Instantiation the\u00a0\u00a0 managers on need only.<br \/>\n2014-03-11 changed data receive logic to work even for very long records.<br \/>\n2014-02-23 added I2C ADS1015<br \/>\n2014-02-08 dial plate adapter added.<br \/>\n2014-02-03 enable one broadcast\/value for multiple adapters like &#8216;stopAll&#8217;<br \/>\n2014-01-24 fixed a conversion error from adapter to framework (now always strings)<br \/>\n2014-01-06 added WS2801-Adapter, some bug fixes in SPI handling<br \/>\n2013-12-26 added remote connection adapter<br \/>\n2013-12-01 configuration file for portMapping in xml<br \/>\n2013-11-16 added sighup in order to catch terminal closed.<br \/>\n2013-11-16 added code to enforce a singleton running instance<\/p>\n<h1>atmel-328-firmware<\/h1>\n<p>Firmware for atmel-328 is needed when programming an separate atmel 328-microcontroller as an adc-device, frequency measurement and more.<\/p>\n<p><a href=\"http:\/\/heppg.de\/ikg\/administration\/pi\/program_328\/doc\/steckbrett_328_en.pdf\">documentation english<\/a>, <a href=\"http:\/\/heppg.de\/ikg\/administration\/pi\/program_328\/doc\/steckbrett_328_de.pdf\">documentation german<\/a><a href=\"http:\/\/heppg.de\/ikg\/administration\/pi\/program_328\/doc\/steckbrett_328_de.pdf\"><br \/>\ndownload scripts for adc, timer, &#8216;steckbrett&#8217;.<\/a><\/p>\n<p>2014-06-07 modified interrupt handling for TIMED_COUNTER mode<br \/>\n2014-05-30 corrected handshake for ir receive module.<\/p>\n<p><a title=\"ultrasonic documentation\" href=\"http:\/\/heppg.de\/ikg\/administration\/pi\/ultrasonic_328\/ultrasonic_328_en.pdf\">documentation for hc-sr04 &#8216;ultrasonic&#8217;<\/a><br \/>\n<a title=\"Downlaoad firmware, programmer, examples\" href=\"http:\/\/heppg.de\/ikg\/administration\/pi\/ultrasonic_328\/ultrasonic_328.tar.gz\">download scripts for hc-sr04 &#8216;ultrasonic&#8217;.<\/a><\/p>\n<p>2015-03-28 initial upload.<\/p>\n<p><a title=\"ultrasonic documentation\" href=\"http:\/\/heppg.de\/ikg\/administration\/pi\/dht22_328\/dht22_328_en.pdf\">documentation for DHT22 <\/a><br \/>\n<a title=\"Downlaoad firmware, programmer, examples\" href=\"http:\/\/heppg.de\/ikg\/administration\/pi\/dht22_328\/dht22_328.tar.gz\">download scripts for DHT22, temperature, humidity.<\/a><\/p>\n<p>2015-04-11 initial upload.<\/p>\n<h1>Feedback<\/h1>\n<p>I have closed the comment function\u00a0 for this page (thank you spammers). If you have questions about the software, please write me an email. Sorry.<\/p>\n<p>Or raise topics in\u00a0 <a href=\"https:\/\/www.raspberrypi.org\/forums\/viewforum.php?f=77\">raspberrypi.org, forum, scratch<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>scratchClient-Software scratchClient is software especially for raspberryPi which allows scratch 1.4\u00a0 or scratch 2 to use hardware on the pi. scratchClient is written in python, so no compiling step is needed. Installation and usage instructions are in the documentation. Samples are in the code distribution. Download code distribution: scratchClient.tar.gz Documentation is included in the download. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":4,"menu_order":210,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-6","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6"}],"version-history":[{"count":90,"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/6\/revisions"}],"predecessor-version":[{"id":1055,"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/6\/revisions\/1055"}],"up":[{"embeddable":true,"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/pages\/4"}],"wp:attachment":[{"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}