descriptionATtiny10 implementation of a 1-dimensional cellular automaton
last changeFri, 28 May 2021 19:14:49 +0000 (21:14 +0200)

CYBERHEART, ATtiny10 based implementation of a 1-dimensional cellular automaton

This is a model of an elementary cellular automaton in the space of a one-dimensional compact manifold evolving by the rule 30 with a random initial state.
Visual and sound indication corresponds to the birth of adjacent zeros sequence of maximum length (lying in the base of generated triangles, see Evolution Sample below).

CyberHeart
See video on YouTube

Schematics

CyberHeart Schemtics

Programmer Wiring

ATtiny pinout 

    (PCINT0/TPIDATA/OC0A/ADC0/AIN0) PB              1   6  PB3 (RESET/PCINT3/ADC3)
    GND                                             2   5  VCC
    (PCINT1/TPICLK/CLKI/ICP0/OC0B/ADC1/AIN1) PB1    3   4  PB2 (T0/CLKO/PCINT2/INT0/ADC2)

ASP Programmer pin __ ASP name (ATtiny10 name __ ATtiny10 pin __ FTDI FT232R name)

    1 miso  (TPIDATA 1 CTS)     2 vcc   (Vcc 5 Vcc)
    3 sck   (TPICLK  3 DTR)     4 mosi  
    5 reset (reset   6 RTS)     6 gnd   (gnd 2 gnd)

on ATtiny IC

    CTS 1   6 RTS
    gnd 2   5 Vcc
    DTR 3   4 ---

CyberHeart
CyberHeart

Rule 30, evolution sample

***** ***** **   * ******    ** ** **     * *   **   **   ** *  
*     *     * * ** *     *  **  *  * *   ** ** ** * ** * **  ***
 *   ***   ** * *  **   ***** ****** ** **  *  *  * *  * * ***  
*** **  * **  * **** * **     *      *  * ********* **** * *  * 
*   * *** * *** *    * * *   ***    ***** *         *    * **** 
** ** *   * *   **  ** * ** **  *  **     **       ***  ** *    
*  *  ** ** ** ** ***  * *  * ****** *   ** *     **  ***  **  *
 ******  *  *  *  *  *** **** *      ** **  **   ** ***  *** ***
 *     ***************   *    **    **  * *** * **  *  ***   *  
***   **              * ***  ** *  ** *** *   * * ******  * *** 
*  * ** *            ** *  ***  ****  *   ** ** * *     *** *   
**** *  **          **  ****  ***   **** **  *  * **   **   ** *
     **** *        ** ***   ***  * **    * ****** * * ** * **  *
*   **    **      **  *  * **  *** * *  ** *      * * *  * * ***
 * ** *  ** *    ** ****** * ***   * ****  **    ** * **** * *  
** *  ****  **  **  *      * *  * ** *   *** *  **  * *    * ** 
*  ****   *** *** ****    ** **** *  ** **   **** *** **  ** *  
****   * **   *   *   *  **  *    ****  * * **    *   * ***  ***
    * ** * * *** *** ***** ****  **   *** * * *  *** ** *  ***  
   ** *  * * *   *   *     *   *** * **   * * ****   *  ****  * 
  **  **** * ** *** ***   *** **   * * * ** * *   * *****   ****

Compile and flash

Compiled and tested on AVR ATtiny10, using bitbang programmer based on FT232R

./make
./flash

Testing

to activate Debug Mode please uncomment "#define UART" line

stty 9600 -F /dev/ttyUSB0
cat /dev/ttyUSB0

Troubleshooting

if avrdude not verifying the code, connect 5v power supply (instead of 3.3v)

Most probably modern version of avrdude would work with FTDI programmer out of the box, but just in case... avrdude 5.10 with ftdi bitbang on linux

License

Copyright © 2021 Dmitry Shalnov [interplaymedium.org]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this files except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

shortlog
2021-05-28 Dmitry Shalnoffinit master
heads
3 months ago master
Contact me: dev (at) shalnoff (dot) com
PGP fingerprint: A6B8 3B23 6013 F18A 0C71 198B 83D8 C64D 917A 5717