Hi all,
I'm hoping someone can help, I sourced these great seven segment LED boards form China and am trying to get them working with the Netduino.
It appears to show in the manual they are driven with SPI. But I'm struggling even to find the correct connection for the wires.
I'm hoping someone is willing to help make sense of this display, as I think it could be useful to others as well.
Link to webpage:
http://www.sureelect...oods.php?id=135
Many thanks in advance.
Logicalstep
- Netduino Forums
- → Viewing Profile: Topics: logicalstep
The Netduino forums have been replaced by new forums at community.wildernesslabs.co.
This site has been preserved for archival purposes only
and the ability to make new accounts or posts has been turned off.
Community Stats
- Group Members
- Active Posts 21
- Profile Views 5427
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
0
Neutral
User Tools
Friends
logicalstep hasn't added any friends yet.
Topics I've Started
SPI LED
12 June 2012 - 10:37 PM
Serial Port Reader Erros
29 January 2012 - 04:16 PM
Hi all,
I hope someone can help. I'm trying to read Tag Id and Ascii responses from an RFID reader.
It send the Tag ID over the Serialport fine, and then I send back a request to start further processing, however the Tag ID arrives fine the first time, but subsequent requests seem to be missing data.
So my question is... does the 'port.Read(bytes, 0, port.BytesToRead);' Read in all the bytes from the Serial Port, or just the ones that have arrived since you have reached the Break point?
I have already done a program in VB that essentially does a lot of what I'm trying to do and on the VB serial port class, I can set it to keep reading the serial port until there are no bytes to read left. This way I know it's not a timing issue, but on .Net Micro there doesn't appear to be a way to do this, you have to just read in what's there in one chunk.
I've tried inserting a small delay before reading the bytes, as I know sometimes it need a moment to 'finish' reading the bytes.
So Here is what I have: (for now I have just dimensioned the Holding Byte Array statically to 40 Bytes).
static void RecievedData(object sender, SerialDataReceivedEventArgs e)
{
Thread.Sleep(100);
string line = "";
byte[] bytes = new byte[40];
ByteToReadGlob = port.BytesToRead;
port.Read(bytes, 0, port.BytesToRead);
if (ByteToReadGlob == 11)
{
SentReq = true;
ComSend(":002000" + (Char)13);
}
else
{
if (SentReq) {
string rcvd = "";
SentReq = false;
rcvd = new string(Encoding.UTF8.GetChars(bytes));
Debug.Print("Worked Rcvd " + rcvd);
}
}
ByteToReadGlob = 0;
//line = "" + new string(Encoding.UTF8.GetChars(Storbytes));
//Debug.Print(line);
//line = "" + new string(Encoding.UTF8.GetChars(Storbytes));
//Debug.Print(line);
}
}
New here and have a question
02 January 2012 - 06:05 PM
Hi All,
Firstly, great forums, loads of helpful info from members.
I have a Netduino Plus and am about to start a project. I am VB biased and have so far just been playing with simple C# examples.
My question is: This project will be fairly complex for me in terms of the functions I need within it. There will be serial port and IP networking, but mainly string and date time comparisons. So should I stick with C# due to it's maturity, or is VB at such a stage that I should consider this?
Thanks in advance.
Logicalstep
- Netduino Forums
- → Viewing Profile: Topics: logicalstep
- Privacy Policy