Testing Arduino code with GNU Octave (Or Otherise)


hi all, looking little developing , troubleshooting code, free program gnu octave 3.2.4 or otherwise suggested you.

i developing program accept input array of 3 elements namely x,y,z coordinates. these coordinates run series of calculations determine angles/pwm signals output servo motors. see block diagram below:

[x,y,z]-->[trig , math]-->[angles/pwm]-->[servo position]

i looking test code on own anytime , anywhere without connecting devices or going lab. thought handy if could:
1) create 1x3 matrix in program such gnu octave software
2) send data arduino software
3) compute angles/pwm
4) output results gnu octave verify proper function of arduino code.

is possible gnu octave or otherwise?

i don't know octave quick google suggests matlab , people use matlab arduinos.

but find hard visualize how use program in way suggest.

for example, have small arduino program controls fridge. reads temperature sensor , switches relay make fridge work. if wanted test software external program substituting temperature sensor , relay would, in reality, have write entirely different program.

you conceivably mimic external world second mcu device put appropriate electrical signals on arduino pins , detect whether voltages on arduino output pins correct. not done pc.

the usual way debug/verify arduino sketch working send intermediate values serial monitor.

of course if arduino sketch controlled instructions pc (perhaps in response clicking icons on pc screen) should possible write pc program emulate instructions without needing human test operator.

...r


Arduino Forum > Using Arduino > Interfacing w/ Software on the Computer > Testing Arduino code with GNU Octave (Or Otherise)


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support