description | ATtiny10 implementation of a 1-dimensional cellular automaton |
last change | Fri, 28 May 2021 19:14:49 +0000 (21:14 +0200) |
Clone the code | git clone https://git.shalnoff.com/git/CYBERHEART |
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).
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 ---
***** ***** ** * ****** ** ** ** * * ** ** ** *
* * * * ** * * ** * * * ** ** ** * ** * ** ***
* *** ** * * ** ***** ****** ** ** * * * * * * ***
*** ** * ** * **** * ** * * * ********* **** * * *
* * *** * *** * * * * *** ***** * * * ****
** ** * * * ** ** * ** ** * ** ** *** ** *
* * ** ** ** ** *** * * * ****** * ** * ** *** ** *
****** * * * * *** **** * ** ** ** ** *** *** ***
* *************** * ** ** * *** * ** * *** *
*** ** * *** ** * ** *** * * * ****** * ***
* * ** * ** * *** **** * ** ** * * *** *
**** * ** ** **** *** **** ** * * ** ** ** *
**** * ** *** *** * ** * ****** * * ** * ** *
* ** ** ** * * ** *** * * ** * * * * * * ***
* ** * ** * ** ****** * *** * **** ** ** * **** * *
** * **** ** ** * * * * ** * *** * ** * * * **
* **** *** *** **** ** **** * ** ** **** *** ** ** *
**** * ** * * * ** * **** * * ** * * *** ***
* ** * * *** *** ***** **** ** *** * * * *** ** * ***
** * * * * * * * *** * ** * * **** * **** *
** **** * ** *** *** *** ** * * * ** * * * ***** ****
Compiled and tested on AVR ATtiny10, using bitbang programmer based on FT232R
./make
./flash
to activate Debug Mode please uncomment "#define UART" line
stty 9600 -F /dev/ttyUSB0
cat /dev/ttyUSB0
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...
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.
2021-05-28 | Dmitry Shalnoff | init master | commit | commitdiff | tree | snapshot |
3 years ago | master | shortlog | log | tree |