I wired up an LCD to my Netduino just like Szymon's great example here and everything was good. Of course this is just the start of a larger project, and I like my pinouts all neat and logical so rather than hook it up to pin 10, 11 and 13, I wanted to use 11, 12, 13.
No dice - the library throws general system exception when trying to create the output port. Then I thought it had something to do with the type of pin - so I tried a number of others: 9, 5 and 2 all work.
Any obvious problems here?
Fails:
var lcdProvider = new Shifter74Hc595LiquidCrystalTransferProvider(SPI_Devices.SPI1,
SecretLabs.NETMF.Hardware.Netduino.Pins.GPIO_PIN_D12);
Works:
var lcdProvider = new Shifter74Hc595LiquidCrystalTransferProvider(SPI_Devices.SPI1,
SecretLabs.NETMF.Hardware.Netduino.Pins.GPIO_PIN_D10);
var lcdProvider = new Shifter74Hc595LiquidCrystalTransferProvider(SPI_Devices.SPI1,
SecretLabs.NETMF.Hardware.Netduino.Pins.GPIO_PIN_D9);
var lcdProvider = new Shifter74Hc595LiquidCrystalTransferProvider(SPI_Devices.SPI1,
SecretLabs.NETMF.Hardware.Netduino.Pins.GPIO_PIN_D5;
var lcdProvider = new Shifter74Hc595LiquidCrystalTransferProvider(SPI_Devices.SPI1,
SecretLabs.NETMF.Hardware.Netduino.Pins.GPIO_PIN_D2;
Thanks,
Corey
- Netduino Forums
- → Viewing Profile: Topics: cjc
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 6
- Profile Views 5008
- Member Title New Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
0
Neutral
User Tools
Friends
cjc hasn't added any friends yet.
Topics I've Started
Getting Exception Using MicroLiquid Crystal Library
28 June 2011 - 02:21 PM
Process Control
21 June 2011 - 06:15 PM
So I got a Netduino last Friday and so far I have been able to:
- Update it to the 4.1.1 1-Wire Beta firmware
- Get the serial-parallel LCD "Hello World" example going
- Read the temp of a DS18S20 1-wire temp sensor.
Fairly happy with stuff so far. (background: C# programmer by trade, home brewer by hobby, just learning more about netduino and circuits)
The plan is to get a Netduino Plus (Solarbotics is out currently, so just playing with a Netduino for now) to do the following:
- Read a 1-wire sensor network (automatic enumeration and simple config)
- Log data to the SD
- display process data on the LCD
- allow config files on the SD to be altered over Ethernet (e.g. push from a web server)
- allow data to be queried over Ethernet (e.g. pull to a web server)
- allow the process to be paused and started over Ethernet (e.g. push from a web server)
- Drive the process logic via config files on the SD
- Control relays based upon the process logic
Use Case:
Control gas and water valves and a pump for a HERMSsetup for step mashing, completely automated.
I know how I am going to accomplish most of this (but feel free to comment on anything), but I want a nice set of config files to define the process. I will be attempting to write something pretty generic (so it could be used for anything that needs to control relays based on sensors and time - like sous vide or fermentation temp control, or just weather logging). What I am hoping exists is a standard language for process definition so I don't need to invent my own (although I am good with that if need be).
E.G.
Step 1. Heat water to 77C
Step 2. Transfer 20L of water from HLT to MT
Step 3. Refill HTL.
Step 4. Heat water to 74C
Step 5. Recirculate water.
Step 6. Wait.
...
So for right now one question: Does anyone know of an industry standard "language" for process control config files? that's free? no too specific?
I figure I will need a file that abstracts things (the 1-wire sensor addresses into process controls, relays to actions, etc.) and a file detailing the actual process.
Once things gel a little more I will start posting the pieces of the project.
Cheers,
Corey
- Update it to the 4.1.1 1-Wire Beta firmware
- Get the serial-parallel LCD "Hello World" example going
- Read the temp of a DS18S20 1-wire temp sensor.
Fairly happy with stuff so far. (background: C# programmer by trade, home brewer by hobby, just learning more about netduino and circuits)
The plan is to get a Netduino Plus (Solarbotics is out currently, so just playing with a Netduino for now) to do the following:
- Read a 1-wire sensor network (automatic enumeration and simple config)
- Log data to the SD
- display process data on the LCD
- allow config files on the SD to be altered over Ethernet (e.g. push from a web server)
- allow data to be queried over Ethernet (e.g. pull to a web server)
- allow the process to be paused and started over Ethernet (e.g. push from a web server)
- Drive the process logic via config files on the SD
- Control relays based upon the process logic
Use Case:
Control gas and water valves and a pump for a HERMSsetup for step mashing, completely automated.
I know how I am going to accomplish most of this (but feel free to comment on anything), but I want a nice set of config files to define the process. I will be attempting to write something pretty generic (so it could be used for anything that needs to control relays based on sensors and time - like sous vide or fermentation temp control, or just weather logging). What I am hoping exists is a standard language for process definition so I don't need to invent my own (although I am good with that if need be).
E.G.
Step 1. Heat water to 77C
Step 2. Transfer 20L of water from HLT to MT
Step 3. Refill HTL.
Step 4. Heat water to 74C
Step 5. Recirculate water.
Step 6. Wait.
...
So for right now one question: Does anyone know of an industry standard "language" for process control config files? that's free? no too specific?
I figure I will need a file that abstracts things (the 1-wire sensor addresses into process controls, relays to actions, etc.) and a file detailing the actual process.
Once things gel a little more I will start posting the pieces of the project.
Cheers,
Corey
- Netduino Forums
- → Viewing Profile: Topics: cjc
- Privacy Policy