Show Posts
Pages: 1 [2]
16  Using Arduino / Project Guidance / Re: Machine Vision LED Controller -- advice requested on: January 28, 2012, 12:57:08 pm
Any suggestions on a better protocol to implement, or should it be something done by scratch?

A software GUI would be needed for users to adjust channel power and apply their settings to the controller -- run from a host PC installed somewhere nearby.

A serial command interface would contain a list of commands and may look  something like this:

Command: Set channel power
Format:
SC###

Where:
C = channel number
### = 0-255

Example:
S0255
S1255
S2255
S3255
etc..


This is geared towards an industrial environment with automation as a focus, where there is potentially numerous machines which are run all together through software. It is common to have software send out serial commands (rather than have a user interface). It is a vision application, so the lighting works in conjunction with camera imaging systems, sensors, etc..

 Typically used in automated inspection (inspecting beer bottles for cracks/imperfections is one example). Beer bottles may be travelling on conveyor where a camera images the bottle with a light flash or continuous lighting. Software algorithms compare defects and reject/accept the bottles as they move along.

This is just one example, but another example may be a system that must adjust intensity levels, or color settings, on the fly due to a changing product that must be inspected. This would all be automated, so a well implemented serial protocol is necessary.

17  Using Arduino / Interfacing w/ Software on the Computer / Re: firmatavb + pwm not woriking? on: January 28, 2012, 11:26:07 am
BUMP!!

Still cannot find any support for this..
18  Using Arduino / Project Guidance / Machine Vision LED Controller -- advice requested on: January 28, 2012, 10:54:49 am
I'm working on a program where I can control up to 4 channels of lighting. Lighting current source is independent of the arduino and is already developed hardware. The controller will have the following control methods:

1. TCP/IP server -- user interface for use over a browser
2. USB GUI -- user interface for serial users (also low-level setup for the controller)
3. Serial command interface -- users can control the unit over serial commands rather than software

Control functions include:

1. Channel settings for 3-4 channels
2. Memory to save settings
3. possibility for pre-set configurations (call up stored channel settings with a command)
4. user adjustable network settings dialogs, etc..

My progress so far:

I've played with the Arduino Ethernet, and have built a rough but functional 4-channel control (actually only 3 channels at the moment). No frills there at the moment. Thinking ahead into how I can incorporate all these control features, I need to plan something solid from the beginning so I don't waste a lot of time developing one piece, only to find out it really won't be compatable with a different piece (IE TCP/IP vs. Serial).

I've been looking at Firmata for the serial side -- is it feasable to implement Firmata, as well as custom TCP/IP firmware in the same build? Is there any functionality in Firmata for TCP/IP?

Someone give me a sanity check -- am I even on the right track?

For any Arduino "professionals" out there -- this job has potential to pay for contract work, if anyone shows interest.

Any advice you may have would be greatly appreciated!!

-J
19  Using Arduino / Interfacing w/ Software on the Computer / Re: firmatavb + pwm not woriking? on: January 04, 2012, 02:30:13 pm
bump...

same problem here. Tried both arduino 0022 and 1.0, with all the firmata versions for each.. no PWM functionality.

Anyone got this to work properly?? smiley-cry
'
-J

20  Using Arduino / Storage / Re: EEPROM Serial Print questions, and formatting on: December 31, 2011, 12:44:52 pm
Thank You, your code works well.

Shortly after I posted this, I figured out a couple things -- one thing being the difference between "print" & "println" ( I warned you that I was a newbie); so I got closer on my own..

Then I went further to add the periods, but took a different turn using a FOR loop (which added too many periods, etc..).


I may post more questions as I move along with my program -- thanks again..
21  Using Arduino / Storage / EEPROM Serial Print questions, and formatting on: December 31, 2011, 11:59:52 am
Total newbie here, just a fair warning..

I'm looking to store an IP address into EEPROM. The IP is then read back from the EEPROM in serial.print fashion.
Would I format this code to make it display the IP address on a single line, seperated by  ".", like this:

IP Address
"192.168.24.253"

Ultimately this is a bigger project planned with the following goals:

1. Have user input to change/enter IP, Gateway, etc..
2. network information gets stored into EEPROM
3. will work from a server-based ethernet interface

The current I have shows the output like this:
IP Address
192
168
24
1

Any helpful tips would be appreciated!
-J

Code:
#include <EEPROM.h>
#include "EXROM.h"



void setup()
{
 
  byte IP[] = {192,168,24,1};
  byte IPsize[sizeof(IP)];
 
  Serial.begin(9600);
 
 
EXROM.write(0, IP, sizeof(IP));         //write the IP to memory
 
 
 EXROM.read(0, IPsize, sizeof(IPsize));  //read the IP from memory
 
 Serial.println("IP ADDRESS");
     for(int i=0;i<sizeof(IP);i++)
  {
    Serial.println(IP[i], DEC);
  }
 
Pages: 1 [2]