Comments (14)
Adam, I'm not sure about how to do the indicator lights. I'm assuming we don't want to load the pins from the microcontroller, so I've used the CMOS configuration to turn on a green LED when sent a high and to turn on a red LED when sent a low. I'm assuming the power supply (batt) will be around 7 volts for the resistor values. Could you have a look at it and tell me what you think?
Also, I can't seem to run the ERC. It always gives me 0 errors and warnings, with the only message:
"Item not annotated: C?
Annotation required!"
and that's it.
from avionics14.
Loading the microcontroller pins is fine. Just something like the pin, a 100R resistor, the LED and ground works no problem.
You need to run annotation before ERC - the button right near the ERC button that gives actual designations to each part instead of just "C?", "R?" etc. Once annotated you can run the ERC.
from avionics14.
Ok, so can I assume that the microcontroller pins and sink AND source about 10mA? That would allow us to run a red and green LED with each pin. And is the logic high 3.3V?
from avionics14.
Correct, but that configuration means one LED or the other must always be on -- given we should have plenty of pins I'd just go with one LED per pin. Logic high is 3.3V yes.
from avionics14.
That said, if the green LED was fairly dim (large resistor) and the red one reasonably bright, that might be quite a nice way to indicate OK/error status.
from avionics14.
That would require quite a lot of tweaking with the resistor values though. I have no idea what values might result in bright or dim results. I've just modified the schematic to use one pin one LED, since we have enough. I suppose lighting both red and green could be considered as a third type of error message if needed.
from avionics14.
As a rough rule of thumb a 1k resistor will give a dim indication light and a 100R resistor will lead to quite a bright light, on standard sort of 0603 size LEDs. But one per pin works too.
from avionics14.
Being able to just flash one colour of LED is useful too (e.g. slow/fast flashing green or green flashes for activity indication) so that's probably worth keeping.
from avionics14.
I've just run the ERC and found just 3 of my pins disconnected despite clearly connecting them to hierarchical pins (didn't save the annotation). I tried re-wiring those again, but it just doesn't want to connect for some reason. They're on the microSD card slot. The other pins are working fine though. Could it be that it's because they just don't have pull-ups or pull-downs?
from avionics14.
Are they connected like...
_
|
|<=Label
_|
i.e. with the label connecting to a vertical line segment? they have to connect to horizontal line segments, like
_
|
o---<=Label
_|
from avionics14.
it's a pin directly to a 1 grid spacing wire directly to a label: ==o---<label
from avionics14.
It's possible the pin itself is slightly off the grid if the part is custom and the pin placed when the grid was set to something larger. Try dragging the SD card socket symbol itself (press 'G' while the cursor is over it, or right click > drag) and check that the wires all stay attached to the pins when you move it around.
from avionics14.
It actually does! Still getting the "ErrType(2): Pin not connected (and no connect symbol found on this pin)" problem though...
from avionics14.
Okay. It sounds like this is because nothing else is connected on the other end of the label. If you put an NC flag on the wire, or if you go up one sheet and place the hierarchical label there and the NC on that, it should work out.
from avionics14.
Related Issues (8)
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 avionics14.