Archive for March, 2010

Mar
25

Sub-Dividing

Mar
10

Pictures from the Computational Workshop




Mar
04

Photocell + 8×8 LED Matrix

This is an example of using 2 photocells and a variable resistor as analog inputs to control 8×8 LED Matrix with PIC18F452, UDN2981, and ULN2803. The input values of the two photocells are compared. When the values are the same, LED lights up randomly within the entire board. Depending on how much darker a photocell is compared to the other, LED lights up within the range that is more focused towards a corner. The variable resistor controls how fast the LEDs blink. This is how the board was set up:

The following is the code:

DEFINE LOADER_USED 1
DEFINE OSC 20
INCLUDE “modedefs.bas”

DEFINE ADC_BITS 10
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEUS 20

ADCON1 = %10000010

trisb =%00000000
trisd =%00000000
trisa =%11111111
trisc =%10000000

an0 var word
an1 var word
an2 var word
an0b var byte
an1b var byte
an2b var byte

portb = 0
portd = 0

rand_max var byte
rand_min var byte
random_word var word
randomdig var byte

main:

GOSUB getadc
IF an1b < an2b THEN
rand_max=an1b
rand_min=0
ENDIF

IF an1b > an2b THEN
rand_max=7
rand_min=7-an2b
ENDIF

IF an2b = an1b THEN
rand_max=7
rand_min=0
ENDIF

GOSUB generate_Random
portb = 1<<randomdig
GOSUB generate_Random
portd = 1<<randomdig
PAUSE 10*an0b
gosub bd_off
PAUSE 1*an0b

GOTO main

bd_off:
portb=0 : portd=0
RETURN

getadc:
ADCIN 0,an0
ADCIN 1,an1
ADCIN 2,an2
an0b = (an0*8)>>10
an1b = (an1*8)>>10
an2b = (an2*8)>>10
RETURN

generate_random:
RANDOM random_word
randomdig = random_word DIG 1
IF randomdig > rand_max THEN GOTO generate_random
IF randomdig < rand_min THEN GOTO generate_random
RETURN

Mar
01

Computational Workshop @ Kookmin University + Kyonggi University

I will be running a Maya workshop for Jinbok Wie’s studios at Kookmin and Kyonggi University this coming week.

WORKSHOP: COMPUTATIONAL DYNAMICS – ‘BONE’
Tutors: 김지호 (http://www.ynotwhy.com, http://crtl-i.com) + 위진복 (http://wieandpartners.com)
The workshop will be dedicated to constituting the artificial process of transformation of material information. This process will target comprehension of how extensities are formed into intensities. The STUDIO will deal with form as field which is full of dynamic strengths, rather than reductive physics. The STUDIO will work with the materiality of matter implying the changes of modes and the shifts of energy, rather than materials in modern manner. The introduction of dynamic modelling tools from Maya will give the STUDIO the learning of the capabilities of the program, coupled with the understanding of the relevant parameters of the subject studied: nCloth, IK, particle-dynamics, soft bodies, expressions, and etc. If relevant, some other parametric synchronization tools like grasshopper and scripts will be possibly introduced.

‘Bone’ will be dealt with in two scales of material system and two levels information exchange that enriches the subject, ENGINEERING VERTICALITY. TWO SCALES: 1. The microscopic level of the internality and the individuality 2. The macroscopic level of bone as collectivity TWO LEVELS: 1. The relation to other system of the body 2. The relation to external forces.