1 # CYBERHEART, ATtiny10 based implementation of a 1-dimensional cellular automaton
3 This is a model of an elementary cellular automaton in the space of a one-dimensional compact manifold evolving by the [rule 30](https://en.wikipedia.org/wiki/Rule_30) with a random initial state.
4 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).
6 ![CyberHeart](https://shalnoff.com/pics/2021/CYBERHEART/cyberheart.gif)
7 [See video on YouTube](https://www.youtube.com/watch?v=6BIKdoBqZHU)
11 ![CyberHeart Schemtics](https://shalnoff.com/pics/2021/CYBERHEART/cyberheart_schematics.jpeg)
17 (PCINT0/TPIDATA/OC0A/ADC0/AIN0) PB 1 6 PB3 (RESET/PCINT3/ADC3)
19 (PCINT1/TPICLK/CLKI/ICP0/OC0B/ADC1/AIN1) PB1 3 4 PB2 (T0/CLKO/PCINT2/INT0/ADC2)
21 ASP Programmer pin __ ASP name (ATtiny10 name __ ATtiny10 pin __ FTDI FT232R name)
23 1 miso (TPIDATA 1 CTS) 2 vcc (Vcc 5 Vcc)
24 3 sck (TPICLK 3 DTR) 4 mosi
25 5 reset (reset 6 RTS) 6 gnd (gnd 2 gnd)
33 ![CyberHeart](https://shalnoff.com/pics/2021/CYBERHEART/IMG_7672.JPG)
34 ![CyberHeart](https://shalnoff.com/pics/2021/CYBERHEART/IMG_7640.JPG)
36 ## [Rule 30](https://en.wikipedia.org/wiki/Rule_30), evolution sample
38 ***** ***** ** * ****** ** ** ** * * ** ** ** *
39 * * * * ** * * ** * * * ** ** ** * ** * ** ***
40 * *** ** * * ** ***** ****** ** ** * * * * * * ***
41 *** ** * ** * **** * ** * * * ********* **** * * *
42 * * *** * *** * * * * *** ***** * * * ****
43 ** ** * * * ** ** * ** ** * ** ** *** ** *
44 * * ** ** ** ** *** * * * ****** * ** * ** *** ** *
45 ****** * * * * *** **** * ** ** ** ** *** *** ***
46 * *************** * ** ** * *** * ** * *** *
47 *** ** * *** ** * ** *** * * * ****** * ***
48 * * ** * ** * *** **** * ** ** * * *** *
49 **** * ** ** **** *** **** ** * * ** ** ** *
50 **** * ** *** *** * ** * ****** * * ** * ** *
51 * ** ** ** * * ** *** * * ** * * * * * * ***
52 * ** * ** * ** ****** * *** * **** ** ** * **** * *
53 ** * **** ** ** * * * * ** * *** * ** * * * **
54 * **** *** *** **** ** **** * ** ** **** *** ** ** *
55 **** * ** * * * ** * **** * * ** * * *** ***
56 * ** * * *** *** ***** **** ** *** * * * *** ** * ***
57 ** * * * * * * * *** * ** * * **** * **** *
58 ** **** * ** *** *** *** ** * * * ** * * * ***** ****
62 Compiled and tested on AVR ATtiny10, using bitbang programmer based on FT232R
69 to activate Debug Mode please uncomment "#define UART" line
71 stty 9600 -F /dev/ttyUSB0
76 if avrdude not verifying the code, connect 5v power supply (instead of 3.3v)
78 Most probably modern version of avrdude would work with FTDI programmer out of the box, but just in case...
79 ![avrdude 5.10 with ftdi bitbang on linux](https://web.archive.org/web/20180304000842/https://doswa.com/2010/08/24/avrdude-5-10-with-ftdi-bitbang.html)
83 Copyright © 2021 Dmitry Shalnov [interplaymedium.org]
85 Licensed under the Apache License, Version 2.0 (the "License");
86 you may not use this files except in compliance with the License.
87 You may obtain a copy of the License at
89 http://www.apache.org/licenses/LICENSE-2.0
91 Unless required by applicable law or agreed to in writing, software
92 distributed under the License is distributed on an "AS IS" BASIS,
93 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
94 See the License for the specific language governing permissions and
95 limitations under the License.