-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
W1209: problems connecting half duplex to sensor connectors #17
Comments
Hi TabbieSuperb! Great to hear that it almost worked for you! Let's check if your half-duplex circuit works with the SWIMCOM image:
Edit: also please tell the type of your serial adapter (I'd like to learn what works best).
Here is a binary for testing: By the way, which kind of STM8 discovery board do you use - is it the one with the STM8S105C6T6? |
Thank you Thomas! Circuit works: I've flashed my W1209 to SWIMCOM and I have a working 9600 console wired to SWIM pin! Thank you! However, after flashing to the W1209_2400 version still no luck with the sensor's pins. May be it is just broken after a bad removal of C1, who knows. I will continue testing it. Now for the programmable voltage regulator!!! ;) |
Hi TabbieSuperb, the problem with your W1209 is interesting - maybe there is a short circuit. You can test it from "within" by reading the ADC using the SWIMCOM image:
I've been thinking about changing the W1209 to a SWIMCOM interface for a while because this would make developing code that uses the analog port much easier, and also modifying the board would be less of a trouble. The W1209 uses PD1/SWIM to a segment of the LED display, but the display is "common anode", and might be able to work around it. I'll reopen this ticket, and give it a try. Good luck with the DCDC - I'm looking forward to hearing about it! |
After running some "ain": |
When you connect the NTC sensor the ADC value should be 350-ish (and drop when the sensor gets warmer). That would confirm that the circuit works normally, and make this thing even more mysterious ;-) By the way, I've been playing a bit with a serial interface solution for the W1209 ICP with (mostly) working LED display. It works nicely at 3.3V but I had no luck with 5V operation so far. Edit: combining LED display and serial interface won't work without wither injecting a small current (which would activate the LED), or a modification of the hardware. The reason is the LED common anode resistor (hidden below the 7S-LED display) which is a bit to low for 5V operation. Activating a column (anode) GPIO triggers a com interrupt, even if multiple segments are active). A possible work-around is the replacement of the 5V voltage regulator |
One more thing about your USB serial interface converter: |
As you stated, but with may be 10ºC temperature? I've myself tested SWIMCOM using +12v in board mains and by the ICP header with CP2102 providing +5V and +3V. |
The circuit seems to be OK, I guess that the signal levels of the hacked com port are to blame. Better get a PL2303 clone instead of a CH340. It's also possible to do something "completely different" and communicate e.g. through the GPIO of key "-". In order to make waiting for the new USB adapter easier, I quickly made a W1209 binary with half-duplex communication through PC5 ("-" key) for you: If you'd like to reproduce this, here is the changed part of the
By the way, the "-" key still works, as you can see with the help of the following code:
|
Totally awesome! It works as you designed on the minus key! Thank you very much! I've made a photo with the rehacked cable... ;) Best wishes! http://es.tinypic.com/r/wvbp5j/9 |
Cool! Great that it works. Maybe I'll uses this as the default method 👍 |
Please refer to issue #42 for a different approach. |
Hi Thomas!
First of all thank you for your incredible work, you have opened for a newbie like me a whole new world.
Sorry if those are noob questions but I think having some feedback from me can be interesting.
I've successfully flashed W1209 by soldering some pins to the unpopulated swim interface and using the usb dongle, with LED display showing a wonderfull "4th". After that, I've removed the C1 capacitor. Next, I have built with a breadboard the half duplex circuit that you kindly published, and correctly wired it to a working ttl dongle (very happy console user of 4th in the STM8 discovery board), but most of my keyboard presses are translated to zeros and some cursor chars. I think console speed may be too fast for my W1209, because when I change speeds to 2400 I start to see correct chars. However, I suspect W1209 firmware is currenty only working at 9600.
Could you please give me some ideas about what to do/test/build?
Thank you very much.
The text was updated successfully, but these errors were encountered: