Close
0%
0%

turingPi

A turingmashine simulator using a pi

Similar projects worth following
100 views
0 followers
A turing mashine emulater using a pi to be programmd and an led rgb-strip as a work belt
  • 1 × ws281 strip Switches and Relays / Electromechanical Relays
  • 1 × pwersupply
  • 1 × Arduino compatible device with USB (or usb/tty)
  • 1 × cables, solder, switches ...
  • 1 × 1 k resistor (optional)

  • So, that did not work

    franz06/21/2016 at 08:51 0 comments

    So that does not work any more (i assume the Linux kernel was changed in some respect). That's why i chose the boring way of using an arduino, which has the advantage, that it now can be run from any Linux computer, although the raspberry pi can still be used in longterm installations.

  • installing the pi

    franz03/18/2016 at 16:41 0 comments

    #install the pi, then install the necessary software

    git clone https://github.com/jgarff/rpi_ws281x.git

    cd rpi_ws281x/

    vi main.c

    # //modify to sute your setup (size)

    scons

    sudo scons

    sudo ./test

    python3 setup.py build

    sudo apt install swig

    sudo apt install python3-dev

    python3 setup.py build

    sudo python3 setup.py install

    sudo python3 examples/lowlevel.py

View all 2 project logs

  • 1
    Step 1

    #install the pi, then install the necessary software

    git clone https://gitlab.com/franzt1/jrgbtmp.git

    cd jrgbtmp/

    sudo apt-get install arduino openjdk-8-jre

  • 2
    Step 2

    connect the Arduino. install the sketch from the Git repository onto the arduino. connect the rgb band to pin 7 and the powersupply. You are now connected. Try the console manager in arduino, set the speed to 4900 baud and send the string "rgbx". It should now have a red, a green and a blue glowing led. everything is set up

  • 3
    Step 3

    cd src

    run the software. Although there might be a compiled version included recompile it with javac -sourcedirectory ../../....... ///

    and execute with java com.asdf....Main > /dev/ttyUsb

    Now the gui can be used to create turingmashines and run them.

View all 3 instructions

Enjoy this project?

Share

Discussions

franz wrote 06/21/2016 at 08:54 point

it appers to not work annymore with new cernels, i might look into it

  Are you sure? yes | no

franz wrote 03/19/2016 at 14:44 point

well that's somewhat true

however the raspberry pi can do pwm, due to hardware features, and i found a softwoare (no linked in), that uses direct memory aces (dma) to magically toggle the pin without the ALU (the part of the CPU, that does most of the calculation and program execution work) involved.

I can't understand how it works (it writes directly to memory and has to run as root as a consequence), but it works well. what more could I wish for.

I am creating some circuit information coming up.

  Are you sure? yes | no

tinkerzone wrote 03/19/2016 at 02:16 point

Hi, 

I thought that ws2812 strips couldn't be controlled by Pis as they can't supply a 400khz clock signal to keep them in sync? I thought they were only control able by non-os machines.

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates