Welcome, Guest
Username: Password: Remember me

TOPIC: Arduino and Proview

Arduino and Proview 13 years 4 months ago #1185

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
MotionControl USB I/O is for me the \"only\" device which is standard in Proview.
I am working in a technical school and my budget is low.
At the moment I am in the learning curve of Proview and I wonder if there is somebody with succesfull small \"low-budget -device-projects\" who wants to share their knowledge, for example with a Arduino. All suggestions are welcome...

Regards,

Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.

Re:Arduino and Proview 13 years 4 months ago #1192

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3178
  • Thank you received: 502
  • Karma: 133
Hello Marc,

I'm not familiar with Arduino, but at a quick glance it looks as it would be quite easy to connect it to Proview. I will order a board and check it out.

Proview V4.8 has support for Velleman K8055 which is a low cost USB board suitable for educational applications.

/Claes
The administrator has disabled public write access.

Re:Arduino and Proview 13 years 4 months ago #1193

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Claes,

Holy Moly..., I just looked at thr release notes of 4.8.0.
The Arduino has tons of projects and a huge comminity.
In combination with the K8055 is it a great start to kick in the door from the educational system. And that's the place to be.....

/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.

Re:Arduino and Proview 12 years 11 months ago #2061

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Claes,

I have found why/when the Arduino is slow.
It's because of the Arduino’s digitalWrite() command.
The same problems with a analogWrite() which takes longer than the digitalWrite().
Because of simplicity the pins are labeled, by the makers of the Arduino, as digital 0-13 and analog 0-5. The ATMega chip’s pins are labeled differently.
The trick seems to be to use “true c” style commands, what the AVR compiler uses.


void setup()
{
Serial.begin(9600);
}
void loop()
{
int initial = 0;
int final = 0;
initial = micros();
for(int i = 0; i < 500; i++)
{
digitalWrite(13,HIGH);
digitalWrite(13,LOW);
}
final = micros();
Serial.print(\"Time for digitalWrite(): \");
Serial.print(final-initial);
Serial.println(\"\");
initial = micros();
for(int i = 0; i < 500; i++)
{
PORTB = 0b00100000;
PORTB = 0b00000000;

}
final = micros();
Serial.print(\"Time for true c command: \");
Serial.print(final-initial);
while(1);
}


Off topic:

The cheap balance system with a metal ball is still playing my mind......
If on the axis is a stepper and a potentiometer I can only see an undefined area (when the coils of the stepper are not activated) where the ball it can't win from the \"friction\"....
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.

Re:Arduino and Proview 12 years 11 months ago #2064

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
Hi Marc,

I also already red this here:
billgrundmann.wordpress.com/2009/03/03/t...ot-use-writedigital/

but the pin address is then hard coded during compiling, isn't it ? do you think this can be used together with Proview as you need to re assign the pin number depending on your Channel Number in your project ?

Snarf
The administrator has disabled public write access.

Re:Arduino and Proview 12 years 11 months ago #2066

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Snarf,

I am pretty dizzy after:

www.billporter.info/ready-set-oscillate-...change-arduino-pins/
and
code.google.com/p/digitalwritefast/downloads/list

So, I don't really know yet. But there is always hope.....

/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.
Time to create page: 9.473 seconds