Welcome to ScubaBoard, the world's largest scuba diving community. Registration is not required to read the forums, but we encourage you to join. Joining has its benefits and enables you to participate in the discussions.
Benefits of registering include
A quick follow-up to my previous post with the schematic. The Schmitt Trigger NAND gate chip should be powered by the CP2102 board at around 3.3 volts (the CP2102 board should have connections for power, gnd, tx and rx at least). The grounds between the NAND chip and CP2102 board should also be connected together.
Theory of Operation:
1. When the Puck is either not connected or not in PC mode, the green light will be on. This is because the Puck tri-states (lets float) its DIO pin. Without anything to pull the DIO pin high, the 100k resistor pulls the NAND inputs low (pins 1 and 2) which then drive pin 7 high. If the Drak is not in SUSPEND (sleeping or not enumerated on the USB) then pin 12 of the CP2102 will be low which causes current to flow through the green LED, lighting it.
2. When the Puck is connected and put into PC mode, then the DIO pin is pulled high. This pulls NAND inputs high which causes pin 7 to be pulled low. This lights the red LED because current now flows from CP2102 pin 11 to pin 7 through the LED.
3. The PC then sends a message to the Puck. Pin 26 is pulled high normally (its idle state) which allows DIO to be pulled high. When Pin 26 is pulled low (when sending data), current flows through the S7 diode pulling the DIO pin low (to about the forward voltage of the diode).
4. When receiving data, pin 26 stays high, and DIO is toggled by the Puck computer. When DIO is high, pin 7 is low and pin 5 is idling high. This makes pin 25 high. When DIO is pulled low by the Puck, pin 7 (pin 6) is high and because pin 5 is also high pin 25 is toggled low.
This setup uses TX pin 26 as a switch for bi-directional data transfer - when held high, RX can receive. When data is sent and received the LEDs should flash from green to red based on the current state of the DIO line. This circuit also creates something like an open collector connection between the two devices. The data transfer speed is 38400 baud. I'm not sure if just using an open-collector output tied to the RX line would work. The PC would then have a loop-back where it received everything it sent. This depends on the computer software and what it does with the extra data.
- Bryce
Depending on final price, I'd join a group buy. I had the an original factory cable/connector that mysteriously disappeared from my house. I've been looking all over but cannot find it. Right now I'm entirely dependent on my Shearwater Predator bluetooth connection for getting dive data into my pc.group buy from whomever want to build a whole bunch of them?
this is interesting, i knwo about this electronics i can build a pc board and i can send it to you, similar to the diveduino baord..
Will this work just by adding the Schmitt Trigger NAND, the resistors and diodes ?:
https://www.sparkfun.com/products/9873
also i am curious if this cable will work with this
libdivecomputer, a library for communication with various dive computers.
with the cable we can make some reverse engineering to see the serial bytes and commands the software is sending to grab the data in a simple txt file and then make what ever you want..
---------- Post Merged at 01:18 PM ---------- Previous Post was at 11:08 AM ----------
so after some research, check this out..
i think thats how it works in all computers just with two terminals
microcontroller - Tx/Rx UART communication between 2 MCU over 1 line - Electrical Engineering
all one wire with a reverse diode.....
i will try it...
I'd go in on a group buy, if I don't get the expensive one for Christmas, and if you can make them cheaply and still have it be worth your time and effort. I have the Mares Puck (not the newer Pro model). On my end, I have to consider the fact that it might not work. I'd risk $20-30 if you're pretty sure it won't fry my computers (or me)!
Duke,
I can say that at the moment I don't plan on selling these. After extensive searching on the web, I noticed that there was some information for other dive computers but none for the puck so I thought I'd add my two cents. After finally breaking down and buying the expensive cable I figured I would do a service to those who were in my position of trying to find DIY information. I know there are plenty of people out there with DIY skills and therefore am just content to the data I currently have. If there are others out there that would like to take on a project like this, I'm all for it.
- Bryce