Profiles.Dct231 History

Hide minor edits - Show changes to output

Added line 4:
Changed lines 4-5 from:
to:
photodiode | Break-beam Sensor [[(http://www.)dcthomas.net/break-beam.html]]
Changed lines 3-5 from:
photoElectric Sensor| Though-beam [[(http://www.)dcthomas.net/photoElectric.html]]
to:
photoElectric Sensor | Though-beam [[(http://www.)dcthomas.net/photoElectric.html]]
Added lines 3-5:
photoElectric Sensor| Though-beam [[(http://www.)dcthomas.net/photoElectric.html]]
Deleted lines 4-51:
additional note on peakvalue assignment:
sensor: Abrams flex sensor
code for with comments:

'Peak Detection for Processing Serout2
'PicProBasic for FL18452
'initial test of 50 for threshold gave acceptable results
'initial test of 5 gave acceptable noise reduction in resulting DataLogger graph
'changed serout line for tx pin --specifying DEC conversion slowed DataLogger too much,
'original line was useful when sending data to HyperTerminal.
'original line: serout2 tx, n9600, ["peak reading", DEC peakValue, 13,10]
'a pause set to return "real time" data. began test at 1
'resulting DataLogger graph returned results representational of sensor event in real-time
'processing code used-- same as Tom's Code: Simple serial: Datalogger
'http://www.tigoe.net/pcomp/code/archives/processing/000265.shtml#000265

' Define ADCIN parameters
DEFINE ADC_BITS 10 ' Set number of bits in result
DEFINE ADC_CLOCK 3 ' define internal clock source (3=rc)
DEFINE ADC_SAMPLEUS 20 ' Set sampling time in uS

PeakValue var word 'call data bits
SensorValue var word
LastSensorValue var word
Threshold var word
Noise var word

' serial pins and data reate:
tx var portc.6 'call send/recieve pins
rx var portc.7
n9600 con 16468

Threshold = 50 ' set your own value based on your sensors
PeakValue = 0 ' initialize peakValue
noise = 5 ' set a noise value based on your particular sensor

' Set PORTA to all input
TRISA = %11111111
' Set up ADCON1
ADCON1 = %10000010

Main:
' read sensor on pin RA0:
ADCin 0, sensorValue
serout2 tx, n9600, [sensorValue]
pause 100
Goto main
Changed lines 5-52 from:
here's my blog posts. http://itpsensor.blogspot.com/
to:
additional note on peakvalue assignment:
sensor: Abrams flex sensor
code for with comments:

'Peak Detection for Processing Serout2
'PicProBasic for FL18452
'initial test of 50 for threshold gave acceptable results
'initial test of 5 gave acceptable noise reduction in resulting DataLogger graph
'changed serout line for tx pin --specifying DEC conversion slowed DataLogger too much,
'original line was useful when sending data to HyperTerminal.
'original line: serout2 tx, n9600, ["peak reading", DEC peakValue, 13,10]
'a pause set to return "real time" data. began test at 1
'resulting DataLogger graph returned results representational of sensor event in real-time
'processing code used-- same as Tom's Code: Simple serial: Datalogger
'http://www.tigoe.net/pcomp/code/archives/processing/000265.shtml#000265

' Define ADCIN parameters
DEFINE ADC_BITS 10 ' Set number of bits in result
DEFINE ADC_CLOCK 3 ' define internal clock source (3=rc)
DEFINE ADC_SAMPLEUS 20 ' Set sampling time in uS

PeakValue var word 'call data bits
SensorValue var word
LastSensorValue var word
Threshold var word
Noise var word

' serial pins and data reate:
tx var portc.6 'call send/recieve pins
rx var portc.7
n9600 con 16468

Threshold = 50 ' set your own value based on your sensors
PeakValue = 0 ' initialize peakValue
noise = 5 ' set a noise value based on your particular sensor

' Set PORTA to all input
TRISA = %11111111
' Set up ADCON1
ADCON1 = %10000010

Main:
' read sensor on pin RA0:
ADCin 0, sensorValue
serout2 tx, n9600, [sensorValue]
pause 100
Goto main
Added line 2:
Added line 4:
Changed lines 2-3 from:
I intend to add p-comp / sensor tech to some of the videos for a later installation piece.
to:
I intend to add p-comp / sensor tech to some of the videos for a later installation piece.
here's my blog posts. http://itpsensor.blogspot.com/
Changed line 1 from:
Diane Thomas; ITP student. Recent work can be seen at dcthomas.net
to:
Diane Thomas; ITP student. Recent work can be seen at [[(http://www.)dcthomas.net]]
Added lines 1-2:
Diane Thomas; ITP student. Recent work can be seen at dcthomas.net
I intend to add p-comp / sensor tech to some of the videos for a later installation piece.