Notifications
Clear all

Upload speed Arduino vs serial programmer

31 Posts
4 Users
7 Likes
1,614 Views
douwebakker
(@douwebakker)
Member
Joined: 2 years ago
Posts: 58
Topic starter  

@davee Hi Dave, thanks for your response. Surely you have determined from my topics that I am not an accomplished programmer. I am an old-fashioned electronics engineer with knowledge of radio and television technology. I like tinkering with microprocessors and it doesn't take up much space. It was an accidental discovery that programming via the Arduino is much faster than via a serial programmer.
 


   
DaveE reacted
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6988
 

@douwebakker Ok, got it. I used my FTDI232 programmer that has a 5/3.3 switch and 6 pins exposed to jump GPIO0 to G and got it programmed, then I stuck the ESP01 card into the carrier board as seen in the video. Blink is running! Now why was I doing this? Oh yes, upload speed. I already posted the speeds at https://forum.dronebotworkshop.com/postid/35276/ and no need for a UNO.

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
DaveE reacted
ReplyQuote
(@davee)
Member
Joined: 3 years ago
Posts: 1689
 

Hi @douwebakker,

  Many discoveries .. perhaps most ... are the result of someone doing something 'ordinary' and noticing something 'unexpected'.

What follows is more important ... it is often necessary to carefully isolate the reason for the discovery from lots of spurious other things that are going on at the same time, otherwise it just becomes an excepted oddity of no real value.

Hence, my plea for some precise details in the hope of learning something that can be developed further. 

------------

I too remember getting a pretty fair understanding of the circuits of radio and TV, including colour which was then becoming mainstream in the UK, before I even came "face-to-punched card" with a computer! Since then the two technologies have continued to get closer together,.to the point it feels like the only technology a present day TV shares with its predecessors in the 1960s is the 'Belling-Lee' coax aerial socket design!

Best wishes, Dave


   
ReplyQuote
douwebakker
(@douwebakker)
Member
Joined: 2 years ago
Posts: 58
Topic starter  
Posted by: @inq

I would say the main reason is even the smallest ESP-01 has 512 KB of flash memory (ESP-01S 1MB). Most other ESP8266 have 4 or 16MB. An UNO only has 32 KB. It simply takes time to erase flash memory before the writing process. Size of program doesn't really come into it.

However, even the blink sketch will have the WiFi low level code in it from Espressif, no matter whether your using WiFi or not. You'll note the binary is a lot larger than the Uno version.

Are you using the best upload speed for the ESP? I always use: 921600. I have seen some computer/ESP combinations that can use the 3,000,000 baud rate... at which point is upload even a full-blown WiFi app in short order.

Good morning, thanks for your comment. I'm responding a little later than I should, but that's because I had to think about your statement. But I think it might have something to do with the flash memory. I have no other explanation for it.

Douwe


   
ReplyQuote
douwebakker
(@douwebakker)
Member
Joined: 2 years ago
Posts: 58
Topic starter  

To make programming the ESP8266-01 a bit easier I made a programming board today.

afbeelding
afbeelding

It works very simple:

1 Press and hold U/N key.
2 Connect USB cable
3 Release U/N key.
4 Start uploading.
5 Press the Res key.

And then the program runs.
 
 


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6988
 

@douwebakker cool hardware design. I don't understand the directions tho. Conceptually it's connect USB, press upload sketch, before it times out press and hold the GPIO0 to G switch. Release, programming is now done. Press the reset switch to run. Thanks for the idea.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6988
 

@douwebakker I can't see how you get the breadboard pins connected to the header pins. The pieces of perf board I have do not connect adjacent rows or columns. In the past I have had success at just dragging an excess amt of solder from one pin to the other but now it doesn't want to work. Am I missing some other trick?

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
douwebakker
(@douwebakker)
Member
Joined: 2 years ago
Posts: 58
Topic starter  

@zander, Hi Ron,I used double Sided experiment board.

The connections are made with very thin wire.

Then the headers are soldered on.

 

 

 


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6988
 

@douwebakker Ok, I ended up ordering special boards that have same pattern as breadboard plus some others that are usable. Your wiring seems to be overkill, that is why I wanted to build it to see if it works with the fewer wires I plan on. Thanks for the inspiration.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
douwebakker
(@douwebakker)
Member
Joined: 2 years ago
Posts: 58
Topic starter  
Posted by: @zander

@douwebakker Ok, I ended up ordering special boards that have same pattern as breadboard plus some others that are usable. Your wiring seems to be overkill, that is why I wanted to build it to see if it works with the fewer wires I plan on. Thanks for the inspiration.

Don't forget the 10K pull-up resistor between RST and Vcc.

And of course the 2 tact switches.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6988
 

@douwebakker No need for a resistor, why do you think it's needed?

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
douwebakker
(@douwebakker)
Member
Joined: 2 years ago
Posts: 58
Topic starter  
Posted by: @zander

@douwebakker No need for a resistor, why do you think it's needed?

The pull-up resistance ensures a more stable operation
 


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6988
 

@douwebakker Ok, can you elaborate, I have never seen that before 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
douwebakker
(@douwebakker)
Member
Joined: 2 years ago
Posts: 58
Topic starter  
Posted by: @zander

@douwebakker Ok, can you elaborate, I have never seen that before 

I saw it in a book by Dogan Ibrahim & Ahmed Ibrahim "ESP8266 and MICROPYTHON"

edit:

You are right Ron. There is already a 12K pull-up resistor on the board.
See R1 above.
 
afbeelding

 
 
 
 
 
 

This post was modified 1 year ago by douwebakker

   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6988
 

@douwebakker Yes. It's not needed for 'stable' operation, it's needed to put that pin in a High state so that when the reset switch pulls it to ground we can detect the Falling/Low state of the pin.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Page 2 / 3