Upload sketch to arduino uno wirelessly

I have a arduino uno then then want to upload some sketch to it over wifi using esp8266
is there a way?

Why did you start a topic in the Uncategorised category of the forum when its description is

:warning: DO NOT CREATE TOPICS IN THIS CATEGORY :warning:

Your topic has been moved to the appropriate category

2 Likes

Have You got code and the hardware needed for the ESP?

esp-link firmware
https://github.com/jeelabs/esp-link

or

JAndrassy/lab/blob/master/AvrDudeTelnet/AvrDudeTelnet.ino

I can not compile the code

{"payload":{"allShortcutsEnabled":true,"fileTree":{"AvrDudeTelnet":{"items":[{"name":"AvrDudeTelnet.ino","path":"AvrDudeTelnet/AvrDudeTelnet.ino","contentType":"file"},{"name":"arduino_secrets.h","path":"AvrDudeTelnet/arduino_secrets.h","contentType":"file"}],"totalCount":2},"":{"items":[{"name":"AvrDudeTelnet","path":"AvrDudeTelnet","contentType":"directory"},{"name":"ConfigurationAP","path":"ConfigurationAP","contentType":"directory"},{"name":"Esp8266Proxy","path":"Esp8266Proxy","contentType":"directory"},{"name":"Foo","path":"Foo","contentType":"directory"},{"name":"IsgModbusTcpSG","path":"IsgModbusTcpSG","contentType":"directory"},{"name":"KitchenTimer","path":"KitchenTimer","contentType":"directory"},{"name":"KitchenTimerTM1637","path":"KitchenTimerTM1637","contentType":"directory"},{"name":"SDWebServer","path":"SDWebServer","contentType":"directory"},{"name":"SerialRpcClientTest","path":"SerialRpcClientTest","contentType":"directory"},{"name":"SketchWithEspProxy","path":"SketchWithEspProxy","contentType":"directory"},{"name":"SymoIOStateTest.ino","path":"SymoIOStateTest.ino","contentType":"directory"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.MD","path":"README.MD","contentType":"file"}],"totalCount":13}},"fileTreeProcessingTime":8.223157,"foldersToFetch":[],"reducedMotionEnabled":"system","repo":{"id":213446017,"defaultBranch":"master","name":"lab","ownerLogin":"JAndrassy","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2019-10-07T20:32:08.000+03:00","ownerAvatar":"https://avatars.githubusercontent.com/u/10706773?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"master","listCacheKey":"v0:1570469798.0","canEdit":true,"refType":"branch","currentOid":"cd80309ccc3f5f4d8f545034688f964978e0b314"},"path":"AvrDudeTelnet/arduino_secrets.h","currentUser":{"id":37815764,"login":"smarta1980","userEmail":"hitronics4trade@gmail.com"},"blob":{"rawBlob":"#define SECRET_SSID \"\"\n#define SECRET_PASS \"\"\n","colorizedLines":null,"stylingDirectives":[[{"start":1,"end":7,"cssClass":"pl-k"},{"start":8,"end":19,"cssClass":"pl-en"},{"start":20,"end":22,"cssClass":"pl-s"},{"start":20,"end":21,"cssClass":"pl-pds"},{"start":21,"end":22,"cssClass":"pl-pds"}],[{"start":1,"end":7,"cssClass":"pl-k"},{"start":8,"end":19,"cssClass":"pl-en"},{"start":20,"end":22,"cssClass":"pl-s"},{"start":20,"end":21,"cssClass":"pl-pds"},{"start":21,"end":22,"cssClass":"pl-pds"}]],"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/JAndrassy/lab/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":false,"repoAlertsPath":"/JAndrassy/lab/security/dependabot","repoSecurityAndAnalysisPath":"/JAndrassy/lab/settings/security_analysis","repoOwnerIsOrg":false,"currentUserCanAdminRepo":false},"displayName":"arduino_secrets.h","displayUrl":"https://github.com/JAndrassy/lab/blob/master/AvrDudeTelnet/arduino_secrets.h?raw=true","headerInfo":{"blobSize":"46 Bytes","deleteInfo":{"deletePath":"https://github.com/JAndrassy/lab/delete/master/AvrDudeTelnet/arduino_secrets.h","deleteTooltip":"Fork this repository and delete the file"},"editInfo":{"editTooltip":"Fork this repository and edit the file"},"ghDesktopPath":"https://desktop.github.com","gitLfsPath":null,"onBranch":true,"shortPath":"0c9fdd5","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FJAndrassy%2Flab%2Fblob%2Fmaster%2FAvrDudeTelnet%2Farduino_secrets.h","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"2","truncatedSloc":"2"},"mode":"file"},"image":false,"isCodeownersFile":null,"isValidLegacyIssueTemplate":false,"issueTemplateHelpUrl":"https://docs.github.com/articles/about-issue-and-pull-request-templates","issueTemplate":null,"discussionTemplate":null,"language":"C","large":false,"loggedIn":true,"newDiscussionPath":"/JAndrassy/lab/discussions/new","newIssuePath":"/JAndrassy/lab/issues/new","planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/JAndrassy/lab/blob/master/AvrDudeTelnet/arduino_secrets.h","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","dismissStackNoticePath":"/settings/dismiss-notice/publish_stack_from_file","releasePath":"/JAndrassy/lab/releases/new?marketplace=true","showPublishActionBanner":false,"showPublishStackBanner":false},"renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"repoOwner":"JAndrassy","repoName":"lab","showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","showDependabotConfigurationBanner":false,"actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timedOut":false,"notAnalyzed":true,"symbols":[]}},"csrf_tokens":{"/JAndrassy/lab/branches":{"post":"sIGcpqMt18kAfdto0xcmVU7A_9tfgCwnOlanIqgRj1bPXJetwltu4IXn5hBWDcnYxhZ4Oi4UdQ6BKKj5eyWGfw"}}},"title":"lab/AvrDudeTelnet/arduino_secrets.h at master ยท JAndrassy/lab","locale":"en"}

 ^

exit status 1
expected unqualified-id before '{' token

evidently that is not the sketch

2 Likes

it is fixed
another point I do not find schematic how to connect esp8266 to arduino uno

ESP8266 TX to uno RX
ESP8266 RX to uno TX
ESP8266 GPIO5 to uno reset

is it correct?

yes

it is not working

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00

Have you taken into account the fact that the Uno and ESP8266 use different voltages ?

Arduino Uno supplied from USB then ESP8266 get 3.3V from Arduino Uno
I can not get any success to upload sketch

That fails because you cannot directly connect 5V and 3.3V processors.

Use a bidirectional logic level shifter to make the connection.

copy here the complete avrdude command and the output

do you have a schematic of connection please?

technically for a long term use you should level-shift the TX pin of the Uno to 3.3 V on RX pin of the esp8266. but for a test, there is no problem to use a pull-up levels amount of current at 5 V on a esp8266 io pin.

by the way, did you test esp link before to upload sketch to uno board?

esp-link firmware? yes I tested it a few years ago

Have a look at Motiuno web site - they have a boot loader allowing remote re programming .

please forward link, thanks