Giter Site home page Giter Site logo

Comments (6)

noopkat avatar noopkat commented on July 16, 2024

I just ran a quick test with this, and lowering DTR closes the port fully (so that we can reconnect at the correct baud rate for programming). Thanks for the suggestion and research on this 😁

Now if we could only get serialport.close to do the same 😉 I remember tearing my hair out at the time when trying to get a reliable reset for all of the leo boards, with only this reset documentation to follow from.

I'll get the leo reset patched up this week. Thanks!

from avrgirl-arduino.

ArekSredzki avatar ArekSredzki commented on July 16, 2024

@noopkat No worries, I know the feeling. This Auto-reset seems to work on all arduino boards. In my Arduino wrapper I simply reset the board on serial port connect. I'll separate out the module from my project and publish it on npm soon so that you can take a look at what works for me.

It's important to note that auto reset on DTR can be disabled in a sketch (though rare for people to do). And it also won't happen if the program crashes from a bug, which sucks if you want to flash the arduino with an update to fix that bug automatically. I believe that you can only fix that with a pulse to the reset pin (untested), or by depowering the device.

from avrgirl-arduino.

noopkat avatar noopkat commented on July 16, 2024

published in 1.4.12

from avrgirl-arduino.

ArekSredzki avatar ArekSredzki commented on July 16, 2024

@noopkat I've extracted that module I mentioned :)

https://www.npmjs.com/package/arduino-interface

from avrgirl-arduino.

noopkat avatar noopkat commented on July 16, 2024

@ArekSredzki thank you, this is very awesome!

from avrgirl-arduino.

ArekSredzki avatar ArekSredzki commented on July 16, 2024

😄

from avrgirl-arduino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.