Programming vs. interfacing
hi everyone,
i've been playing around arduino uno while now, , have been looking way program in java (since i'm java programmer trying electronics , robotics). found out rxtx library, question pretty solved me. however, felt using rxtx rather "improvised" way control arduino, recent x64 dll-files date 2008, leading mismatches current rxtx library etc. overall, didn't way arduino meant used. i've done further research , here's conclusion far:
the arduino programmed in arduino language, based on c/c++. so, don't program arduino in java. program writing called "sketch", code that's c/c++, in ide on pc, upload board, run. java interfacing between arduino , pc.
so, assumption in real-life robotics, program arduino (if choose microprocessor) arduino sketch. inputs taken through reading pins or somehow hooking r/c (right…?). if still need connect pc (for example because main part of system software, rather robot) have find way let board , pc interface. java, rxtx interface, exist many other languages , software.
now, question twofold: first of all, think conclusion? more or less accurate or did understand wrong?
secondly, out of curiosity: how developers go creating such interface? have arduino, usb cable, , pc, do? type of code need write (c, assembly, …), files have build (dll, …), …? assume have lot of specifications manufacturer well, how signals being read, interpreted, sent, etc., right? not have intention of building such interface on own, annoys me when use , have no idea how , why works ;-p
best,
silas
i've been playing around arduino uno while now, , have been looking way program in java (since i'm java programmer trying electronics , robotics). found out rxtx library, question pretty solved me. however, felt using rxtx rather "improvised" way control arduino, recent x64 dll-files date 2008, leading mismatches current rxtx library etc. overall, didn't way arduino meant used. i've done further research , here's conclusion far:
the arduino programmed in arduino language, based on c/c++. so, don't program arduino in java. program writing called "sketch", code that's c/c++, in ide on pc, upload board, run. java interfacing between arduino , pc.
so, assumption in real-life robotics, program arduino (if choose microprocessor) arduino sketch. inputs taken through reading pins or somehow hooking r/c (right…?). if still need connect pc (for example because main part of system software, rather robot) have find way let board , pc interface. java, rxtx interface, exist many other languages , software.
now, question twofold: first of all, think conclusion? more or less accurate or did understand wrong?
secondly, out of curiosity: how developers go creating such interface? have arduino, usb cable, , pc, do? type of code need write (c, assembly, …), files have build (dll, …), …? assume have lot of specifications manufacturer well, how signals being read, interpreted, sent, etc., right? not have intention of building such interface on own, annoys me when use , have no idea how , why works ;-p
best,
silas
the jssc library seems have replaced rxtx , think easier use.
c/c++ language programming arduino. arduino ide makes relatively painless.
look @ examples in serial input basics simple reliable code receive data. system in 3rd example reliable.
it should straightforward java program send data in format.
as far communicating between pc , arduino concerned sending serial messages on standard usb cable obvious option. can send serial messages bluetooth if have bluetooth module arduino.
after things bit more complex. use esp8266 module arduino connect via wifi. or use 2 arduinos (my preferred option) 1 connnected pc usb cable , communicating other arduino using nrf24l01+ 2.4ghz transceivers (which cheap).
...r
c/c++ language programming arduino. arduino ide makes relatively painless.
look @ examples in serial input basics simple reliable code receive data. system in 3rd example reliable.
it should straightforward java program send data in format.
as far communicating between pc , arduino concerned sending serial messages on standard usb cable obvious option. can send serial messages bluetooth if have bluetooth module arduino.
after things bit more complex. use esp8266 module arduino connect via wifi. or use 2 arduinos (my preferred option) 1 connnected pc usb cable , communicating other arduino using nrf24l01+ 2.4ghz transceivers (which cheap).
...r
Arduino Forum > Using Arduino > Interfacing w/ Software on the Computer > Programming vs. interfacing
arduino
Comments
Post a Comment