I become crazy because wiring?
#1
Posted 25 October 2011 - 04:09 PM
#2
Posted 25 October 2011 - 04:12 PM
-- H.L. Mencken, "What I Believe"
#3
Posted 25 October 2011 - 05:23 PM
Absolutely yes. This pictures refer to this project: http://wiki.netduino...ter.ashx?Code=1Can you take a picture of your setup, and post it along with the code you've used?
I've also tried for first this: http://netmftoolbox....OutputPortShift with same negative result In this case i've tried with two and one shift register.. but nothing.. Obviously for this i've also used Ic74HC595, Ic74HC595Chain etc.. classes.
Code in both cases are the same described on the tutorials. I reproduce all faithfully, wiring and coding.
WP_000097.jpg 119.88KB 56 downloads WP_000098.jpg 106.81KB 72 downloads WP_000099.jpg 96.77KB 76 downloads WP_000100.jpg 124.52KB 62 downloads WP_000101.jpg 102.53KB 54 downloads WP_000102.jpg 84.23KB 46 downloads WP_000103.jpg 109.13KB 41 downloads WP_000104.jpg 98.52KB 35 downloads
Thank you in advance
#5
Posted 25 October 2011 - 08:20 PM
haha.. you said yourselfThis will sound utterly stupid, but on your photos there is no power supply cable (USB or barrel jack) connected to Netduino (?)
#6
Posted 25 October 2011 - 08:44 PM
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#7
Posted 25 October 2011 - 09:15 PM
hahaha.. no Stefan, unfortunately notSolved by putting it on power?
I don't undestand.. Stefan, please, may be stupid question, but.. are you sure that this schema http://netmftoolbox....OutputPortShift and your classes works? Sorry, but please belive me, i've faithfully reproduced your schema on the bread board, with your same code, but don't want work .. i'm almost desperate. I changed shift registers, bread board and even microcontroller (yes i also used a Fez panda 2 thinking netduino broke).
My only doubt remain wire size, but honestly do not believe much
Please help giving me a possible error If you want i can reproduce your connections schema and making a video, i can't go crazy because see on the internet many people driving a 74hc595 and i not
#8
Posted 25 October 2011 - 10:01 PM
-- H.L. Mencken, "What I Believe"
#9
Posted 25 October 2011 - 10:45 PM
Okay, a few wild shots to rule things out ...
if you remove the 74hc595 and then connect the 3.3v rail to the places where its output legs are, do the LEDs light up? (just to rule out a problem with the wiring ...)
Are you sure that you have a 74HC595 and not a 74HCT595 - can't read that on the images? (the latter needs a supply voltage >= 4.5V, you're providing 3.3V - nothing wrong when you use a 74HC595, but won't work with 74HCT595). If that's the case, you can try powering it via the 5V line - should work, but you're scratching the edge of the specs then (regarding signal voltage levels).
If you look carefully the pictures, you can see that i use 5V line.
Yes i'm sure, i use an ST M74HC595B1, this: http://www.st.com/in...oduct/69791.jsp
Yes if detach shift register and connect 5V rail directly, i see led light up.
However tomorrow upload detailed images of bread board setup with your schematics provided here http://netmftoolbox....OutputPortShift with various steps like setup with one and two shift registers (chain), light up leds without shift register, providing netduino with usb or battery power etc..
Thank you
#10
Posted 26 October 2011 - 04:31 AM
#11
Posted 26 October 2011 - 06:30 AM
The classes and schematic are tested. A lot!I don't undestand.. Stefan, please, may be stupid question, but.. are you sure that this schema http://netmftoolbox....OutputPortShift and your classes works? Sorry, but please belive me, i've faithfully reproduced your schema on the bread board, with your same code, but don't want work .. i'm almost desperate.
If I'm not mistaken, I see wires on the netduino going to pins 11, 12 and 13, am I correct?
Can you show me the first few lines of your code, especially how you initialize the Ic74HC595Chain and Ic74HC595 class?
I'm curious, I have the feeling you used pin 12 as chip select, which will not work as chip select. The reason for this is because pin 12 is reserved as SPI MISO and when using the SPI bus, that pin is locked out for SPI.
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#12
Posted 26 October 2011 - 07:04 AM
Check the pictures: the wires comning from the N to the HC595 are swapped. Compare them with the code of the Wiki.The classes and schematic are tested. A lot!
If I'm not mistaken, I see wires on the netduino going to pins 11, 12 and 13, am I correct?
Can you show me the first few lines of your code, especially how you initialize the Ic74HC595Chain and Ic74HC595 class?
I'm curious, I have the feeling you used pin 12 as chip select, which will not work as chip select. The reason for this is because pin 12 is reserved as SPI MISO and when using the SPI bus, that pin is locked out for SPI.
Cheers
#13
Posted 26 October 2011 - 07:28 AM
Didn't looked that closely, but on the photo with the netduino:Check the pictures: the wires comning from the N to the HC595 are swapped. Compare them with the code of the Wiki.
Cheers
- Pin 11 (SPI MOSI): Yellow wire
- Pin 12 (SPI MISO): Blue wire
- Pin 13 (SPI Clock): Green wire
Then to the IC:
- Pin 11 (SPI Clock): Yellow wire
- Pin 12 (SPI Latch): Blue wire
- Pin 14 (SPI MOSI): Green wire
You and me are both correct Mario!
He connected the SPI Latchpin (Chip select) to MISO and reversed MOSI and Clock.
So, Dops, this is what to do (on your Netduino!):
1. Swap pins 11 and 13
2. Put the wire in pin 12 in another hole, pin 9 for example
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#14
Posted 26 October 2011 - 08:10 AM
#15
Posted 26 October 2011 - 08:47 AM
No problemoYou are right: I mis-read your post!
Sorry!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#16
Posted 27 October 2011 - 03:45 PM
I will not spark controversy, but be careful, if you look closely pictures i don't use pins 11-12-13.. but only 2-3-4 following this schematic http://unexpecteddev...ino/circ-05.jpg
However, now i've replicated the schema at this address http://netmftoolbox....OutputPortShift and not work!
I try with netduino and a fez panda 2. With netduino leds light in strange mode (as you can see on the pictures).. while with fez panda 2 leds do not lights
On netduino and fez i've used 13-11-9 pins (because have same functions). Obviously on fez i used GHI classes to indicate pin, like this:
Ic74HC595Chain IcOutChain = new Ic74HC595Chain(SPI.SPI_module.SPI1, (Cpu.Pin)FEZ_Pin.Digital.Di9, 2)
So i took pictures, all connections have been checked so as not to have false contacts.
I really don't undestand what happen!! please help me.
WP_000106.jpg 87.09KB 17 downloads WP_000107.jpg 90.48KB 21 downloads WP_000108.jpg 101.14KB 23 downloads WP_000110.jpg 116.35KB 25 downloads WP_000111.jpg 95.29KB 34 downloads WP_000113.jpg 103.99KB 32 downloads WP_000115.jpg 96.37KB 46 downloads WP_000116.jpg 93.59KB 44 downloads WP_000117.jpg 88.99KB 32 downloads WP_000118.jpg 110.57KB 26 downloads WP_000119.jpg 112.56KB 18 downloads
This is the code i've used, on fez i made only above change.
static OutputPort onBoardLed = new OutputPort(Pins.ONBOARD_LED, false); public static void Main() { // Defining two 74HC595s daisychained on the SPI bus, pin 9 as latchpin Ic74HC595Chain IcOutChain = new Ic74HC595Chain(SPI_Devices.SPI1, Pins.GPIO_PIN_D9, 2); // Splits up both 74HC595s. Detail: counting starts at 0 Ic74HC595 IcOut1 = new Ic74HC595(IcOutChain, 0); Ic74HC595 IcOut2 = new Ic74HC595(IcOutChain, 1); // Defines all 16 leds OutputPortShift[] Leds = new OutputPortShift[16]; for (uint Counter = 0; Counter < 8; ++Counter) { // Leds on the first Ic Leds[Counter] = new OutputPortShift(IcOut1, (Ic74HC595.Pins)Counter, false); // Leds on the second Ic Leds[Counter + 8] = new OutputPortShift(IcOut2, (Ic74HC595.Pins)Counter, false); } // Does a ledloop while (true) { for (uint Counter = 0; Counter < 16; ++Counter) { Leds[Counter].Write(true); onBoardLed.Write(true); Thread.Sleep(500); Leds[Counter].Write(false); onBoardLed.Write(false); Thread.Sleep(500); } } }
#17
Posted 27 October 2011 - 04:11 PM
-- H.L. Mencken, "What I Believe"
#18
Posted 27 October 2011 - 04:11 PM
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#19
Posted 27 October 2011 - 05:44 PM
- this is the most beautiful and colored thread of the whole forum, because there are lot of pictures, with rainbow wires, lights, and whatever else;
- Dops has gone out of user's space because the dozen of photos uploaded;
- the Dops' circuit is not working, but it's damn sweet to look at;
- the Dops' breadboard is made in the USA;
Cheers
- monewwq1 likes this
#20
Posted 27 October 2011 - 07:21 PM
Along this series of posts, we surely have known that:
Dops: be proud of yourself!
- this is the most beautiful and colored thread of the whole forum, because there are lot of pictures, with rainbow wires, lights, and whatever else;
- Dops has gone out of user's space because the dozen of photos uploaded;
- the Dops' circuit is not working, but it's damn sweet to look at;
- the Dops' breadboard is made in the USA;
Cheers
Sorry, i'm confused.. but this again not work
Other images: WP_000128.jpg 113.03KB 14 downloads WP_000129.jpg 103.2KB 14 downloads
And a video:
Mario non stà bene sparare sulla croce rossa
Mario it's not nice to shoot on the red cross
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users