Skip to content
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

TH05 V1.6 #77

Open
PEPEct opened this issue Nov 10, 2024 · 5 comments
Open

TH05 V1.6 #77

PEPEct opened this issue Nov 10, 2024 · 5 comments

Comments

@PEPEct
Copy link

PEPEct commented Nov 10, 2024

II have the TH05 v1.6 and I can't find it when updating the firmware, is there any possibility of updating it another way?
I have tried wiring the board but I only have Arduino Mega board, but I am new and I don't know how to link the board to be able to upload a .hex or .bin file to the TH05. Is it possible?

@egzumer
Copy link

egzumer commented Nov 11, 2024

You need USB to UART converter, then follow: https://github.com/pvvx/THB2?tab=readme-ov-file#firmware

BTW: The readme says to connect RTS to RESET. This is wrong, DTR should be used instead of RTS.

@pvvx
Copy link
Owner

pvvx commented Nov 11, 2024

BTW: The readme says to connect RTS to RESET. This is wrong, DTR should be used instead of RTS.

RTS is duplicated by the DTR signal.

def Connect(self, baud=DEF_RUN_BAUD):
		self._port.setDTR(True) #TM   (lo)
		self._port.setRTS(True) #RSTN (lo)
		time.sleep(0.1)
		self._port.flushOutput()
		self._port.flushInput()
		time.sleep(0.1)
		self._port.setDTR(False) #TM  (hi)
		self._port.setRTS(False) #RSTN (hi)

@egzumer
Copy link

egzumer commented Nov 11, 2024

For some reason RTS doesn't work on my FT232RL. I've checked with an oscilloscope, there is no level change.

@PEPEct
Copy link
Author

PEPEct commented Nov 11, 2024

You need USB to UART converter, then follow: https://github.com/pvvx/THB2?tab=readme-ov-file#firmware

BTW: The readme says to connect RTS to RESET. This is wrong, DTR should be used instead of RTS.

Thanks, i'll buy a USB to UART.
Btw, is there a posibility to use ArduinoMega board to use it as USB to UART?

@egzumer
Copy link

egzumer commented Nov 11, 2024

is there a posibility to use ArduinoMega board to use it as USB to UART?

In theory you probably could, you would have to write a program to mirror input serial port to some output port at a correct baud rate, but honestly, UART converter is a $2 thingie (CP2102 dongle on aliexpress), and you should have one either way if you play with microcontrollers, it is usefull for many things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants