Contents
Cyclops Webpage
Cyclops CVS
Cyclops Docs
Schematic : http://cyclopscamera.com/docs/Cyclops2C.pdf
Datasheet : http://www.cens.ucla.edu/~mhr/cyclops/cyclops.pdf
Notes on files in cyclops CVS
- mica2/hardware.h:
This is what I've understood about the difference between your
"/tos-contrib/cyclops/tos/platform/mica2/hardware.h"
and the default tinyos-1.x
"tinyos-1.x/tos/platform/mica2/hardward.h".
Former has several lines added compared to the latter,
but they are not being used right now, or redundant.
Former can be removed. Then, the latter will be automatically used.
The differences are:
1. SET LED related --> they are done in tos/system/LedsC.nc
2. MAKE LED OUTPUT --> they are done in tos/system/LedsC.nc
3. UART1 related --> UART1 is not used for communication with cyclops.
I2C is used now.
In fact, UART1 pins prefer not to be touched
since they collide with the FLASH pins
(D2, D2, D5 on Atmega128)
4. FLASH related --> they are done in tos/platform/mica2/HPLFlash.nc
they collide with UART1 pins.
5. PW* IN/OUT related --> these I'm not sure yet...
but they don't seem to be used right now.
Hence, "/tos-contrib/cyclops/tos/platform/mica2/hardware.h"
can be safely removed to avoid confusion,
which means that I do not need to replicate the changes for *MicaZ*.- nFrames:
nFrames represents the number of frames to take if the cyclops is placed into video mode. but we don't ever do that, so it is ignored. you can set it to zero.
Atmega128 Fuse setting
These are the fuese bits in the atmega128L which is essentialy registers which resides in program space.
For the Cyclops we need the SPI being enabled which is by default and we do not care about the rest.
You can also make JTAG enables in case. you can set it 0xd8.
In this case, you loose the JRAG. Look at page 291:
http://www.atmel.com/dyn/resources/prod_documents/doc2467.pdf
Disable UART
outp(0x00, UCSR0B); // disable USART0 cbi(DDRE,0); // RxD0 --> input cbi(DDRE,1); // TxD0 --> input outp(0x00, UCSR1B); // disable USART1 cbi(DDRD,2); // RxD1 --> input cbi(DDRD,3); // TxD1 --> input
Image Size
Cannot exceed 64KB - 0x1100 bytes. (~ 61100 bytes).
This is Xsize * Ysize * bytesPerPixel, where bytesPerPixel is 1 for B/W, 3 for color.
Usage
./querycyclops -f 3 CYCLOPS 2 QID 12 START 1 MODULE 1 NUMTIMES 1 PERIOD 2 NEWIMAGE 1 FLASH 1 IMAGETYPE 16 XSIZE 64 YSIZE 64
