Skip to main content

uBITX Auto reset problem and solution

Already this issue is known to Arduino users. and There are also various solutions to this.
If you are an Arduino or BITX (uBITX) user, you've already experienced it and have solved the problem.
This article is for those who are new to Arduino like me.
I spent a lot of time thinking that this problem from my firmware.
In other words, I am an old firmware developer, but I first tried it (arduino).




1.Let's find out the cause of the problem.

Below are the videos that are causing the problem.

As you can see in the video, uBITX is powered on and uBITX is reset when starting communication via serial port (usb) for the first time.

The problem is not in uBITX but in Arduino.

The cause can be found in the schematic below.

(https://www.arduino.cc/en/uploads/Main/Arduino_Nano-Rev3.2-SCH.pdf)

The DTR pin of USB (uart to usb) and the RESET pin of ATMEGA are connected.
This means that if the RESET pin on the USB goes low (low is 0 volt), the Atmega is reset.


So why did it do this?
To update the firmware through the USB serial port, because the Reset pin control is required to upload firmware to the Atmega.

2.Let's fix the problem

Anyway, all we have to do is keep the Atmega's Reset pin.

The solution to this problem can easily be found on the Internet.
Searching for arduino rather than uBITX on the Internet is the easiest way to find it.

I searched for 'disable arduino auto reset' on Google.



Is there really a lot of solutions?

i suggest you choose one of Three way (Use the parts you can easily obtain)

2.1 Use resistors
  This method connects the Atmega reset pin and the 5Volt pin with a 100-120 resistor.
Even if DTR of USB becomes low, the reset pin of Atmega does not go down to Low because the resistance lower than the internal resistance of USB chip is connected to 5Volt.


Reference to https://playground.arduino.cc/Main/DisablingAutoResetOnSerialConnection



(ignore red, yellow, green wires, there is for just my work)

Connect 5Volt and RST pin with resistors as shown in the picture.
The resister must be between 100 and 120 ohms.




2.2 Use Capacitor
This is how the capacitor supplies power to the Atmega's Reset pin when the USB DTR goes low.
This is a usable method because USB's DTR is only going low for a very short time.
This affects how long the USB DTR goes low to select the capacity of the capacitor.


Reference https://tushev.org/articles/arduino/22/preventing-arduino-from-auto-reset-when-com-port-opens-closes

You can connect a 10uF capacitor to ground and reset pins.
(Connect the - to the ground of the capacitor and the + to the reset pin.)





When 5 volts is applied to the reset pin, the capacitor is charged. and The capacitor will supply power to the reset pin when the reset pin status chainging to low.


2.3 Controlling DTR when writing a PC program
skip this solution because we will use Ham radio deluxe or wsjtx for the time being.


Below is a video that solves the problem using a capacitor.



3 Problems with the above two solutions

The two problems above are that it is hard to upload the firmware when you do the above.
As mentioned at the beginning of this article, connecting the USB DTR pin to the Atmega's reset pin is for upgrading the firmware.



Since we have defended the USB chip resetting the atmega, upgrading the firmware will no longer be difficult.

Many sites offer an upgrade method through the reset switch control of Arduino. below link is one of there (How to upload code without auto reset chapter)
https://playground.arduino.cc/Main/DisablingAutoResetOnSerialConnection

However, in the case of uBITX, it would be very difficult to operate the reset switch.

I suggest using a switch. The resistor or capacitor is connected via a switch rather than directly to the reset pin. When the switch is on, the resistor or capacitor is connected to the reset pin, and when off, it is disconnected.


4 Problems with the above two solutions

I use with problem, no solution, no fixed...  lol

If I get an error when I connect for the first time without doing any modifications, I click again to connect.


73
KD8CEC Ph.D Ian lee  

Comments

  1. To recruit a goal of 10 participants, 452 individuals were emailed, yielding a response rate of 2.2%. These sample 점보카지노 sizes were prearranged with the funding agency and primarily based on pragmatic selections about what was achievable inside the project timelines and budget. Ideally, sample dimension ought to be adjusted during information collection to reach saturation. This was not potential as within the current examine the funding agency required definitive sample sizes prematurely of the analysis.

    ReplyDelete

Post a Comment

Popular posts from this blog

Introduction to UV-K5 HF Fullband receive version 0.3

Introduction to UV-K5 HF Fullband receive Version 0.3 This is an introduction to UV-K5 HF full-band reception firmware 0.3HF using SI4732-A10. This version is released separately from the existing UV-K5 CEC firmware version. because space is needed to store a large PATCH file to use SI4732-A10's SSB. 0.3HF added several functions to use SSB for shortwave radio and amateur radio.

Release CEC Firmware v1.200 for uBITX All version(include V2, V3, V4, V5)

Release CEC Firmware v1.200 for uBITX All Version (include v2, v3, v4, v5) I did the firmware work for v5 when uBITX V5 was released, but I release it now. I received the feedback from a thankful beta tester and tested it myself by converting my uBITX v3 to v5 but I was not sure. I ordered the uBITX V5 and delivered the correct uBITX V5, so I made a little more fine-tuning. If you use V2, V3, V4, you do not need to update this firmware.

Introduction to UV-K5 HF Fullband receive version 0.41 (Changed from 0.40)

  Introduction to UV-K5 HF Fullband receive Version 0.41 (Changed from 0.40) This is an introduction to UV-K5 HF full-band reception firmware 0.4HF using SI4732-A10. This version is released separately from the existing UV-K5 CEC firmware version. because space is needed to store a large PATCH file to use SI4732-A10's SSB. 0.4HF added several functions to use SSB for shortwave radio and amateur radio.