caramoan tour package

caramoan tour package

Author Topic: Help! Microcontroller to C++  (Read 358 times)

Offline ticrou

  • LR44 Battery
  • *
  • Posts: 5
  • Pogi/Ganda Points: 0
Help! Microcontroller to C++
« on: February 09, 2011, 10:05:38 PM »
guys magtatanong lang po kung paano kukuha ng "data" from ADC microcontroller at gagawing input po sa C++ program un "data". ung microcontroller (Z8F6421) po ay ADC tapos ung C++ po nasa PC. meron po ba kayo sample program about this??? gagamitin po kasi ung "data" for Fuzzy logic using C++. ung "data" po ay 10 bits. links po kung pde or paturo  :)

salamat po mga kuya

Philippine Electronics Forum

Help! Microcontroller to C++
« on: February 09, 2011, 10:05:38 PM »

Offline Macgyver

  • Diesel Generator
  • *
  • Posts: 1440
  • Pogi/Ganda Points: 70
    • MakerDude
Re: Help! Microcontroller to C++
« Reply #1 on: February 09, 2011, 10:47:27 PM »
gawa na ba yung hardware o ikaw pa magdedesign ng hardware?

pinakamadali would be communication via serial port.  PC gets data from serial port,  microcontroller sends data to serial port.
Become a Virtual Worker |  MakerDude.com Electronics Shop is now OPEN!

Philippine Electronics Forum

Re: Help! Microcontroller to C++
« Reply #1 on: February 09, 2011, 10:47:27 PM »

Offline ticrou

  • LR44 Battery
  • *
  • Posts: 5
  • Pogi/Ganda Points: 0
Re: Help! Microcontroller to C++
« Reply #2 on: February 09, 2011, 10:57:16 PM »
gawa na po ung hardware... bale kasi meron 4 na load cell. tapos nakakabit sa amplifier tapos ung amplifier nakakabit sa ADC MCU. tapos naka serial to PC...

pano po kaya ung pag program ng communication from PC to serial port??? nakapag hyper terminal po ako and meron n pong lumabas sa ADC... the problem is pano ko iintegrate ung lumalabas na values and use it to the C++ program...

Philippine Electronics Forum

Re: Help! Microcontroller to C++
« Reply #2 on: February 09, 2011, 10:57:16 PM »

Offline Macgyver

  • Diesel Generator
  • *
  • Posts: 1440
  • Pogi/Ganda Points: 70
    • MakerDude
Re: Help! Microcontroller to C++
« Reply #3 on: February 10, 2011, 12:07:15 AM »
di ako gaanong familiar sa c++ but the idea is similar to reading a text file.  Instead of the file, you are reading the device name ng com port.  Sa linux is more like reading /dev/ttyS01  so I think may equivalent yan sa windows like reading com1:

Ang alam ko may mga libraries kang pwedeng ma download for reading/writing to serial devices.  Pwede mo gamitin yun.  I google mo na lang.
Become a Virtual Worker |  MakerDude.com Electronics Shop is now OPEN!

Philippine Electronics Forum

Re: Help! Microcontroller to C++
« Reply #3 on: February 10, 2011, 12:07:15 AM »

 

Privacy Policy

Contact Us: elabph@yahoo.com