Search Forums by tag:
Serial, mbed, compiler, ethernet, USB, I2C, SPI, interrupt, LCD, library, bug, HTTPServer, CAN, AnalogIn, adc, Power, Ticker, memory, pwm, SD Card, InterruptIn, rpc, Error, SDFileSystem, PwmOut, LocalFileSystem, UART, canbus, driver, TCP, interrupts, rtos, led, libraries, editor, timer, accelerometer, GPS, file, clock, website, C++, SD, frequency, reset, http, LPC11U24, flash, SDCard, RTC, DigitalIn, TCPSocket, problem, printf, Java, Servo, buffer, UDP, SerialPC, DMA, HTTPClient, Sleep, audio, pinball, MODSERIAL, NetServices, socket, array, compile, filesystem, RFID, beta, m3pi, write, LPC1768, multiple, newbie, keyboard, sensor, GPRS, Forum, digitalOut, assembly, debug, hardware, Speed, xbee, AnalogOut, RPCFunction, EthernetNetIf, Download, code, voltage, wait, network, C, suggestion, JTAG, keil, MATLAB, offline, Board, lwip, I2S, dead, Nokia6610, time, bluetooth, WiFly, current, tcp/ip, MODDMA, SPI Slave, pololu, robot, Communication, read, dac, string, pc, binary, filter, copy, USB Host, publish, rs232, DHCP, Host, Data Logging, windows, firmware, malloc, mp3, PCB, gcc, attach, program, fatfilesystem, class, email, arduino, stepper motor, WavePlayer, wifi, Nokia, camera, size, VGA, import, documentation, ide, linux, baud, TextLCD, Cortex-M0, M0, pointers, pullup, Relay, timing, function, latency, serial port, MIDI, compiler error codes, magjack, touch, screen, Production, client, server, stream, HID, breakout, FIFO, prototype, flashing, GPIO, sampling, Analog, display, api, ADXL345, Encoder, DSP, help, motor, sram, suggestions, PING, Terminal, link, browser, Pin, control, Eagle, Modbus, EEPROM, mac, Timeout, fopen, port, updates, usbserial, batteries, DMX, files, USBMIDI, scanf, protocol, PPP, slave, FTP, integer, noise, MODGPS, modem, float, threads, motors, for, monitor, Digital I/O, 7, Windows Serial Driver, pins, keypad, FAT, classes, webserver, delay, variables, time-triggered, c programming, labview, watchdog, post, math, Battery, LPCXpresso, MBED website, GSM, storage, nxp, mobileLCD, license, int, counter, baseboard, Assembler, Vin, rj45, registers, E289, news, i2cmaster, amoled, Compiling, connect, revision, prototype to hardware, UMTSStick, Optocoupler, Robotics, search, oscillator, glitch, Websockets, load, find, real-time, routine, format, offline compile, powersource, driverlibrary, processing, networking, ID, umts, debugging, color, BUTTON, software, PS3, Images, wave, bin, const, SNMP, OSX, supply, peripheral, sensors, data, Design, PID, version, RIT, character, freeze, USBDevice, bus, ARM, wav, SRF08, heap, output, basic, TFT, QVGA, mysql, piezo, update, ID12, Pachube, player, DigitalInOut, object, cmsis, capture, IR, slow, 1768, PSP, OS, syntax, mbed.lib, EmbeddedArtists, NMEA, paste, project, Web, GUI, UART0, firefox, SQL, wakeup, RAM, bitmap, handler, security, 3D, bugs, OLED, Temperature, not, I/O, Bidirectional, rss, wireless, delete, resolved, LED1, LIS302, getc, Safari, Wi-Fi, wiki, PinNames, accounts, PS2, BusOut, projects, RS485, pythonTaylor Smith wrote:
originally tried a simple lcd.putc(pc.getc()); but that's where I'm getting just garbage on my lcd.
Looks like a good approach, and suggest something is happening! Maybe check baudrates? The mbed Serial connection defaults to 9600 8N1.
Simon
Simon Ford wrote:
Looks like a good approach, and suggest something is happening! Maybe check baudrates? The mbed Serial connection defaults to 9600 8N1.Simon
You're a genius! After a little experimenting, it needed to be running at 4800 baud.
Ok, so I've got the reading from satellite tracking program finished, now I'm going to look at interfacing with the rotor controller. In looking at documentation, it reads out the current rotor position using a voltage from 2V-4.5V representing 1-180 degrees. Again, I realize this is an extremely novice electronics question (I'm just a programmer who's trying to learn!), but what's the easiest way to get that in a range that the mbed could read and decipher. If I remember right, the AnalogIn uses a range of 0-3.3v?
I would try a voltage divider. This article offers some values that should work. You will of course need to calibrate it using the real data.
Please log in to post a reply.
No tags
|

I'm trying to write an antenna rotor controller for my Dad who is a Ham Radio operator. We're using a program called Nova for Windows that tracks the satellites and outputs rotor coordinates over a serial port. Right now, I'm just trying to read the serial for the values. I have a mobile lcd hooked up to view the output and I'm pointing Nova4Windows at the Mbed serial port.
I'm running into an issue of all my output basically being garbage. I'm not sure what's going wrong. A quick reference on the EasyCom I interface I'm using:
So basically, I'm trying to read that line of characters to then later control the rotor.
I originally tried a simple
lcd.putc(pc.getc());
but that's where I'm getting just garbage on my lcd. I'm somewhat of a newbie when it comes to C programming so any ideas someone might have, I would greatly appreciate it!
-Taylor