Comments (9)
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.
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.
Here an interesting document on Parasite Powering:
http://www.midondesign.com/Documents/PARAPWR2.PDF
from pjon.
@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.
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.
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.
Thank you @joaand
from pjon.
Even ESP8266 has only internal pullup
from pjon.
I have considered a lot, and digged and I obtained as a result only few questions:
- 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?
- 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)
- AVR Tx -> ESP32 Rx bad reply rate
- Dead links HOT 6
- ESP32 to ESP32 using SoftwareBitBang and cable connection, no packets arrive HOT 13
- ATMega328P @ 8Mhz to ESP8266 no luck HOT 1
- Undefined behavior when using Ports HOT 5
- ESP32 <-> ESP8266 softwarebitbang communication failure HOT 5
- Question: How to read a character array from a received struct. HOT 3
- Dynamic addressing HOT 11
- PJON on RP2040 HOT 3
- SBB SAM3X8E (Arduino Due) Support HOT 1
- ESP <-> Mega - is level shifter supported ? HOT 3
- ESPNow: Encryption not working HOT 4
- PJONSoftwareBitBang between stm32f4 and arduino nano not working HOT 3
- Unable to compile MQTT examples HOT 5
- ESP32 ESP-IDF without Arduino not work
- Video link broken for SoftwareBitBang feature showcase HOT 1
- PJDL half duplex HOT 1
- STM8 support?
- can PJON broadcast between different bus_ids
- TinyAVR1 class support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pjon.