Welcome, Guest
Username: Password: Remember me

TOPIC: Arduino and Proview

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

  • ivo1204
  • ivo1204's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 44
  • Karma: 2
Hi Marc,

Thanks for the comments. This is the version with corrections.
I also I did tests, but because I do not know Proview well, and it's hard to figure out what is real situation.

Post edited by: ivo1204, at: 2011/05/18 13:00
Last Edit: 12 years 2 months ago by ivo1204.
The administrator has disabled public write access.

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

  • ivo1204
  • ivo1204's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 44
  • Karma: 2
Hi Marc,

This is the same code as the Arduino sketch version, but it's terrible to read. All in one ...

Shareware on the top maybe need to put
#define F_CPU 16000000UL

Post edited by: ivo1204, at: 2011/05/18 15:33
Last Edit: 12 years 2 months ago by ivo1204.
The administrator has disabled public write access.

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

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

New brain food for tonight!
My compliments.

/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 #2217

  • ivo1204
  • ivo1204's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 44
  • Karma: 2
Hi Marc,
New brain food for tonight!
I have fresh food now....

This version has two brand new features, it is one of the main causes for this code.
The first is that data not be sent to PROVIEW directly, but they are saved in transmitting ring buffer. In this way allows us to continue the cycle without waiting.
The second is, plc thread. It is implemented in the main cycle, but each performance evokes only one function. For example, ADC, and other I / O are in plc_adc(). Data transmission to PROVIEW be managed by plc_tx ().
Slow tasks and processes are in plc_slow () array.
The basic idea is Arduino and Proview to exchange data with other meanings, not only the direct output and inputs.Such as position, velocity and acceleration of the process where direct exchange would otherwise be difficult - for example, step motors.
]
Last Edit: 12 years 2 months ago by ivo1204.
The administrator has disabled public write access.

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

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

I can see you builded in a dessert as well.
It's \"a shame\" but the next 3 days I am on a short holiday.
When I am back, the first thing I am going to do is to flash the Uno.....

Thanks,

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 #2227

  • ivo1204
  • ivo1204's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 44
  • Karma: 2
Hi Marc,

Have a nice vacation!
The last thing I put in the code is very lightweight SPI interface with other boards - AVR or Arduino.
Of course, it will be necessary modifications and debugging, but now I end.
I plan to make cheaper arduino shield, perhaps with ATMega 644p universal motherboard, but so far I have not bought the parts. I think around 10 euros.
Good luck,
Ivo
Last Edit: 12 years 2 months ago by ivo1204.
The administrator has disabled public write access.
Time to create page: 7.486 seconds