Show Posts
Pages: 1 2 [3] 4 5 ... 433
31  Using Arduino / General Electronics / Re: Using PS/2 keyboard library to emulate key presses on PC on: April 06, 2014, 01:25:37 am
While all the advice on ps2/usb converters is fine and correct, people should not that the PS2Keyboard library mentioned in the original post is for having the Arduino READ a PS2 keyboard, and not for EMULATING a PS2 keyboard.

The PS2Dev library sounds more appropriate.
32  Community / Bar Sport / Re: Your latest purchase on: April 05, 2014, 10:28:09 pm
I really like the whole "comparative microcontroller evaluation" things, but it seems to be really difficult to actually get anything "done." :-(   My poor 8-bit PICs seem to have fallen off the low end...
33  Community / Bar Sport / Re: Your latest purchase on: April 05, 2014, 09:11:36 pm
TI Connected Launchpad:
Several Cypress PSo4 Things, including some bare chips ($1 each!)
   Prototyping kits: (what a great idea, as a "sample" alternative!)
I also scored an ST F4 "Nucleo" at EELive:
So many eval kits, so little time :-(
34  Using Arduino / Microcontrollers / Re: Different output between Arduino Mini 05 and Arduino Mega 2560 on: April 03, 2014, 06:37:56 pm
they're not consecutive on the Mega328
They're not consecutive on the Uno, or the mega2560 , either (not very, anyway).  But the PCB designers DID make them consecutive on the Arduino MEGA...
35  Using Arduino / General Electronics / Re: 9pin D sub to 7 pin DIN on: April 02, 2014, 05:27:01 am
7pin DIN is non-standard, afaik.  You need to consult the weighing computer manual.
36  Using Arduino / General Electronics / Re: How to use RS232 in that case? on: April 01, 2014, 08:00:40 pm
is every RS232 device communicating the same way (besides the baudrate)? Or are there differences?
There can be extensive differences, including complex communications protocols and data packaging.  In this case, it looks like you're in luck and the interface is very ordinary, and uses plain text for most of the commands.  From the FLIR manual:

An RS-232 terminal or host computer connects to the female DB-9 connector on the Pan-Tilt Unit Controller (PTU-C). The host terminal or computer should be set to 9600 baud, 1 start bit, 8 data bits, 1 stop bit, and no parity. Hardware handshaking and XON/XOFF are not used.

From computer networking, you get the concept of "layering."  At the bottom "physical" layer, you have the allowed voltages levels and such.  This is different between the arduino ("TTL serial") and "real rs232" as used by your PTU, which is why you need that "adaptor" board or chip (the common max232.)
At the next layer you have the "data link layer" which describes the formats of bits and bytes and flowcontrol and stuff.  These happen to be the same for arduino serial ports and the PTU.  Then there are a bunch more layers, which in this case are pretty minimal and amount to "send text commands."  (arguably, the "commands are composed of ascii text strings ending with a delimiter" is a separate layer than "The H command halts all movement.")
37  Using Arduino / Programming Questions / Re: Compiled Code Size Difference on: April 01, 2014, 06:07:42 pm
the serial port over the usb bus is a software implementation in the Arduino.
No, it isn't.
The 32u4-based Arduinos implement "Serial" as a CDC driver on top of the hardware USB peripheral.  I don't know whether you'd want to consider that a "software implementation" or not, but the CDC driver IS significantly larger than the HWSerial driver on top of the UART hardware.
38  Using Arduino / Microcontrollers / Re: Difference between what I have, and the uno (or other Atmega 328 board?) on: March 31, 2014, 04:33:02 pm
It looks like the big difference is that your board doesn't have USB.  It's designed to use an external "FTDI cable", rather than having the USB/Serial conversion built-in.  That could be a bad thing if you don't have a USB/"TTL Serial" cable of some kind; one of the big advantages of Arduino (IMO) was that it would just plug into a modern computer...
39  Using Arduino / Programming Questions / Re: How to disable Arduino Environment's use of Timer0? on: March 31, 2014, 02:30:57 am
Defining main() in your sketch will bypass the arduino initialization, but I don't think it will let you define your own ISR for Timer0 and the  other ISRs implemented by the core.

You can also simply re-initialize the timers after the arduino init() code is done with them, at which point they'll stop doing arduino things; there are several libraries for using the other timers.  You still have the ISR problem.

The timer0 tick is pretty much the center of the Arduino runtime.  If you don't want that, I don't understand why you want ANY of the Arduino core.  (I guess I'm agreeing with PeterH)
40  Using Arduino / General Electronics / Re: Trouble finding SMD 74HC279 on: March 31, 2014, 02:18:17 am
He did say "I'm having trouble locating SMD version of 74HC279 chips" - prefixes and suffixes beyond that are likely to be vendor specific.
41  Using Arduino / Microcontrollers / Re: Help with atmega1284 on: March 31, 2014, 02:08:30 am
void usartInit(unsigned char chBaudRate, int uartNum ){
      UBRR0H = (unsigned char)(chBaudRate>>smiley-cool;
      UBRR0L = (unsigned char)(chBaudRate);
If "chBaudRate" is an unsigned char, then this initialization is not correct.  (actually, it probably works for most common baud rates, but...)  How are  you calling usartInit() ?  (those don't look like the Pololu functions that I can find documentation for...)
42  Using Arduino / Microcontrollers / Re: Strange Optiloader bug? on: March 30, 2014, 08:42:14 pm
Which version of the Arduino IDE, which board are you running optiloader on, and what chip/board is the target?
43  Using Arduino / General Electronics / Re: Help me understand what's going on with the reset circuit in this simulation. on: March 30, 2014, 07:40:38 pm
Um.  Leonardo doesn't have an auto-reset circuit, because it doesn't have a serial port in between the USB and the chip.
The two caps you're looking at in the schematics "near" the reset signal are just bypass caps between +5V and GND.
44  Using Arduino / Programming Questions / Re: array like pointer on the function for get the lenth of array. on: March 28, 2014, 11:26:00 pm
the workarounds for this IDE bug are well known.
In short, put your structure definition and typedefs in a separate .h file, and #include that .h file from your sketch.
45  Development / Suggestions for the Arduino Project / Re: ARDUINO RTOS on: March 28, 2014, 08:08:48 pm
FreeRTOS, NilRTOS, and ChibiOS...
Seeing that questions and discussions of these do not overwhelm the existing forum topics, I don't think we need a new topic.
(RTOS discussion usually happens in the "Other Software Development" forum.)

Pages: 1 2 [3] 4 5 ... 433