Shop OBEX P1 Docs P2 Docs Learn Events
reading from text file — Parallax Forums

reading from text file

amir_hmaamir_hma Posts: 1
edited 2012-04-20 09:00 in BASIC Stamp
I want to use my basic stamp to drive to RC servos, as you all know, the PULSOUT argument is used to send pulses to
RC servos.

I want that basic stamp read the duration of pulse from a text file on my laptop.
I am wondering if I can have my basic stamp read from a text file while it is connected to laptop using USB .
I know I can send message to basic stamp using debug window and debugin argument.

I really appreciate your help.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2012-04-18 07:13
    You need some kind of a program on your laptop that will read the text file and send serial data to the Stamp which it can read using a DEBUGIN statement. The Stamp cannot control the laptop. Look at the Stamp Plot Pro program as an example of this.
  • OrbilusOrbilus Posts: 10
    edited 2012-04-20 09:00
    The Robot BASIC program has some very good File & Directory tools that should enable you to interface with your Basic Stamp project (requires a basic knowledge of Visual Basic, but has some very good tutorials). The program can be found at http://www.robotbasic.org/
Sign In or Register to comment.