:cry:
Posted: Mon Apr 07, 2003 9:16 pm Post subject:
--------------------------------------------------------------------------------
my mistake, resolution is too advanced for me. All I am using is about 32 phototransistors and did not want to use demultiplexer to get one switch at a time. I think I have almost a solution. I am not gonna use a microcontroller, but 4 parallel to serial shift registers.
Posted: Thu Apr 10, 2003 11:27 am Post subject:
--------------------------------------------------------------------------------
the universe collapsed, all my research has done nothing: I cannot use infrared detectors under water. Do you know how to interface sonar or ultrasonar transducers to the oopic?
I know I have too amny questions
So what happened I was first gonna use infrared detectors (a great variety of them around 32 all around the ship) I also mistakengly thought that infrared gives a digital output. Now I found that IR phototransistors are analog output an that they do not work in water, so my 32 phototransistors flew out of the window.
To satisfy myself with some other sensors, I decided to use one sonic meter to measure to distance to the bottom of the river. So now I do not need any 32 bits of data for the sensors but less.
Now my electrical design is so far:
1. Use a OOPic Microcontroller.
2. OOPic has TTL circuits, they are being converted onboard into CMOS of the computer by a IC like SN75188 or the MAX203.
3. Connected to the microcontroller, I have:
OUTPUT FROM THE OOPIC
a. 4 H-bridges for each pump to enable the sub go up or down i.e. change its buyancy.
b. Another H-bridge for the propultion motor.
c. Servo control (one line) for the controll of the ruder.
d. ???Some circuit (probably another H-bridge till I find something more apropiate) to control the on/off of a lamp to iluminate the path underwater.
INPUT TO THE OOPIC
a. double-axis tilt sensor (one of the ANALOG products). Two digital lines (PWM), plus self-test line
b. sonar meter to measure the distance to the bottom of the river (this circuit is something I have to find.
4.Totally independent from the microcontroller, I have a webcam, connected straight to the computer via USB port. Mounted on the front of the sub. Gonna use it to take pictures and know where I am going.
5. Ideally, this should be made remote control, however there must be a two receivers and two transmitters on the sub and connected to the computer (serial output transmitter, usb output transmitter, serial input receiver and usb input receiver) I believe it would be possible to interface the OOPic to the usb output of webcam and so reduce the number of receiver-transmitter pairs, however, I would need about ~6mb/s transmittion for the camera, plus I would have to play around with the webcam driver i guess to be able to interpret the data. So for now, my solution is to make the robot tethered
6. Since the robot is tethered, I will a have power supply outside, something like an old car battery (probably will have to reduce the power for the servo, transformer wont work so I better find a servo with 10 v of voltage suply)
7. The frame is made of PVC, sealed hermetically but with possible access inside to acomplish required changes (hopefully none)
8. I would make my own PC program to control the robot, and hopefully with a screen in it showing the output from the camera
So I have two questions:
1. URGENT. How can I interface the transducers to the OOPic to measure the distance to the botom of the lake. Analog or PWM output would be perfect. If you can give me the circuit, that would be exceptional
2. Optional, but a nice thing to have: How can I make the thing wireless (In here I am very dumb: how to interface the usb to pic? how to make the wireless transmission to the receiver/transmitter on shore? How to isolate the camera output so I can use camera drivers on the PC?) This is closer to science fiction :cry:
Hope that is enough info pebe
:?