Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Martin Brown <'''newspam'''@nonad.co.uk> Newsgroups: sci.electronics.design Subject: Re: Microcontroller (AVR) programming from smartphone Date: Wed, 27 Mar 2024 13:58:33 +0000 Organization: A noiseless patient Spider Lines: 41 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 27 Mar 2024 13:58:34 +0100 (CET) Injection-Info: dont-email.me; posting-host="1a7f4da4cd9eb8c1e2407fe53a498913"; logging-data="3032359"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vAJJQjpKa9MCYAS40iCsCTkEpf09jqixhnru8Izktpw==" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:3Mif8HQ6vEkVylQxzi0S+IqoMx4= In-Reply-To: Content-Language: en-GB Bytes: 2888 On 27/03/2024 05:10, RodionGork wrote: > Hi Friends! > > Briefly: considering ways of uploading code to microcontroller > (particularly some Atmel's AtMega - same as used for Arduino) from the > smartphone. > > In details: > > Programming MCUs (e.g. uploading firmware into their ROM) usually > happens via > some proprietary interface (using SPI in case of AVR), or UART, or JTAG. > This generally involves dedicated software on the side of computer and > some hardware (USB to UART or dedicated "serial programmer"). > > Suppose we want to be able to write simple code using mobile phone - > situation I met with my class of 15+ students with no dedicated lab > having 15+ computers. > > I tried creating a small system containing two parts: First - html > web-page with a textarea to write assembly code, built-in AVRA assembly > compiler (just compiled to javascript) - and some JS code which can > "beep" the bits of the hex-file containing firmware (via audio). Second > - bootloader for target MCU which uses ADC pin to "listen" to those > beeps via direct wire connected to 3.5 mm audio jack plugged into > smartphone - and "burn" incoming data into flash memory. > > This works (if you are curious to try, it could be found in my github > page by same username) - however there is a sudden issue: almost half of > students use mobile phones without 3.5mm jack - as nowadays it is the > era of wireless headphones already, I missed the fact! > > So now I'm looking for further, alternative approaches. For example: How about canibalising a cheap bluetooth earbud or pairing the phone by Bluetooth for audio with some other cheap and nasty peripheral. Plenty of not quite supported any more "smart" speakers knocking around. -- Martin Brown