‘ Process ’ category archive

Mar
01

Chengdu Towers

Mar
01

Beijing Catenary Tower

Mar
25

Sub-Dividing

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

Feb
22

Analog / Digital Input, Output

This is an example of using 2 variable resistors as analog inputs and a switch as a digital input to control 8 LEDs with a PIC18F452 chip. Variable resistor 1 is used to control which LEDs light up. The second variable resistor controls how fast the LEDs blink. The switch decides whether the LEDs blink or not. MAX232CPE is used to allow serial communication with a computer. PICBASIC was used to program the chip. 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

TRISA = %11111111
TRISB = %00000000
TRISC = %10001000

adc VAR WORD
adcbyte VAR BYTE

SPEED VAR WORD
SPEEDbyte VAR BYTE

SWITCH VAR PORTC.4

main:

IF SWITCH = 1 THEN

ADCIN 0, adc
adcbyte = adc/140

ADCIN 1, SPEED
SPEEDbyte = SPEED/140

PORTB = %00000001 << adcbyte
PAUSE 100*SPEEDbyte
PORTB = 0
PAUSE 100*SPEEDbyte

ELSE
ADCIN 0, adc
adcbyte = adc/140

PORTB = %00000001 << adcbyte

ENDIF

GOTO main

Feb
08

Gradient Patterns

Testing different patterns with grasshopper.

Jan
29

8×8 LED Matrix

Front side

Cathode rows soldered

Anode rows soldered

Jan
23

Physical Computing – Current Amplification

Today was my first day at a physical computing workshop run by Jin-Yo Mok (http://www.geneo.net). I’m starting from the very basics to understand how every single piece operates at the most fundamental level. The breadboard in the image shows the simplest setup of current amplification using an NPN transistor (2N2222).  Hopefully, I’ll be able to design custom circuit boards in the future as I become more comfortable with all these volts and currents :)

Jan
04

Fibers 2

Ordered, but random
Random, but ordered

Aug
30

Pixel-scape

4b

1b

2b

3b

I have been exploring this idea of a pixelated landscape. Possibly, a park composed with a few types of regular components like grass, walkways, bench, water, light, etc. A controllable intensity of randomness is introduced. This is an attempt to create a simple green surface with a walkway defined by a curve. The curve attracts/selelcts the points according to its defined weight.

screenshobt

Jul
06

Facade Studies

Some facade studies. All these patterns are made through a version of script that is very close to the 3D-pixelate code.

090706_type_f

1

3

4

Jan
05

Random / Order – Growth

I recently purchased a book which turned out to be one of the most amazing books I have ever come across: “A New Kind of Science” by Stephen Wolfram. The entire book is available online for viewing at: http://www.wolframscience.com/nksonline/toc.html

I have been reading a chapter on randomness, which is why I have been writing scripts that heavily depends on random number generator. These are the results of a growth algorithm that explores a territory that is somewhere in between being random and ordered. 

Dec
21

Diffuse / Noise

A new script that I have been writing based on a script found in: 
http://ncertainties3.wordpress.com/explicit-protocols/adam/181008_weldedwire/

The script diffuses any curve into smaller pieces of lines depending on a few parameters.

Merry Christmas, btw :)

 

Some tests:

 

Dec
08

Colony

This is still under a lot of progress. Just exploring ways to randomly populate a surface with mesh objects in this case with bikes and tanks.

Jul
28

Facade

Some images of an on-going facade design. Same-sized fins. Varied rotations.
Under progress, progress, and more progress.