Giter Club home page Giter Club logo

Comments (9)

domonetic avatar domonetic commented on August 12, 2024

Atmega have pull-up and pull-down options. No need external resistors

-----Mensaje original-----
De: "Andrew Grande" [email protected]
Enviado el: ‎19/‎03/‎2016 20:42
Para: "gioblu/PJON" [email protected]
Asunto: [PJON] Add an option to invert the 0/1 logic so we can use internalpull-up resistors (#34)

Hi, I was getting frustrated not able to make basics work, but was finally able to dig up that bit in a troubleshooting guide about a 'Busy' signal and, after adding a 10K pull-down resistor, everything worked. I, however, see couple problems with a pull-down resistor requirement:
It's an external component. If we are going for simplicity, not the right direction.
Most Arduino/Wiring-compatible boards have only pullup resistors (unlike Mega, MBed, etc.). Can we use that instead. The only change required is to invert the logic for reading 1 and 0, if I understand things correctly.
We could e.g. have an overloaded constructor taking an optional pullup flag (defaulting to false).

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

from pjon.

gioblu avatar gioblu commented on August 12, 2024

Hi @aperepel. This proposal is interesting on two different sides. What you are saying is correct, and, what you also get adding this, is to have the chance to potentially power the connected devices, as 1-Wire does, using the transmission line (adding the right capacitor and imposing some limits on sending a lot of byte 0 one after the other).

If you have the will and some time to experiment on a working test version, as you were describing in your message, I will review :) Thank you for your feedback.

@domonetic thank you also for your feedback.
But are you sure of what you are saying?
see https://www.arduino.cc/en/Tutorial/DigitalPins
Please try not to spam 4 messages with the same context one after the other to mantain the conversation clear and straight to the point :)

from pjon.

gioblu avatar gioblu commented on August 12, 2024

Here an interesting document on Parasite Powering:
http://www.midondesign.com/Documents/PARAPWR2.PDF

from pjon.

aperepel avatar aperepel commented on August 12, 2024

@domonetic I bet some confusion crept in. There is Arduino Mega board (2560 chip), which has both pull up and pulldown. Then, the whole Atmel line of chips all starting with AtMega. Uno and Leonardo use e.g. AtMega328P and AtMega32u4, which don't feature pulldowns.

from pjon.

domonetic avatar domonetic commented on August 12, 2024

You're correct

-----Mensaje original-----
De: "Andrew Grande" [email protected]
Enviado el: ‎20/‎03/‎2016 12:21
Para: "gioblu/PJON" [email protected]
CC: "Maximiliano Duarte" [email protected]
Asunto: Re: [PJON] Add an option to invert the 0/1 logic so we can useinternal pull-up resistors (#34)

@domonetic I bet some confusion crept in. There is Arduino Mega board (2560 chip), which has both pull up and pulldown. Then, the whole Atmel line of chips all starting with AtMega. Uno and Leonardo use e.g. AtMega328P and AtMega32u4, which don't feature pulldowns.

You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

from pjon.

joaand avatar joaand commented on August 12, 2024

The datasheet http://www.atmel.com/Images/Atmel-2549-8-bit-AVR-Microcontroller-ATmega640-1280-1281-2560-2561_datasheet.pdf does not mention pull downs, only pull ups.

from pjon.

gioblu avatar gioblu commented on August 12, 2024

Thank you @joaand

from pjon.

itsjustvenky avatar itsjustvenky commented on August 12, 2024

Even ESP8266 has only internal pullup

from pjon.

gioblu avatar gioblu commented on August 12, 2024

I have considered a lot, and digged and I obtained as a result only few questions:

  1. 0s are detected as 1s because the channel is "floating" or electricity around the channel is not correctly grounded, to ground this additional unwanted interference pull-down are used, if we invert, we will only experience the problem in the opposite side?
  2. And also how we can mantain multimaster capability intact with a base of 1 in a non-interrupt driven system and only 1 wire (already in use) and more than one device pulling up?

from pjon.

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.