Posts Tagged ‘Serial comm ports’

Bug Of The Day

And this is a strong one! We are using quite many UNO platforms for fast prototyping. In spite of their relative high price, we always bought boards from Arduino, not because we fear the ‘hall of shame’, but because we understand that that buying these boards contributes to the business model of the Arduino team and […]

PlainDSP (Part 2)

Part 1, 2, 3, 4 The next lines of code illustrate how PlainDSP simplifies the combination of data acquisition and data analysis. You no longer need to worry about the vectors of data. PlainDSP creates dynamically  and transparently the required vectors. On the other hand you must keep in mind that they exist and take 8 times the number […]

Serial Comm Ports for ever and ever… (Part 8)

Part 1, 2, 3, 4, 5, 6, 7, 8 This post couldbe nammed at “The doc of the day”, or “The ultimate RS232 vademecum”, or “The RS323 digest”, etc. National Instrument did it in on one, clean and refined page: the  “Serial Quick Reference Guide”

I/O LED (Part 6)

Part 1, 2, 3, 4, 5, 6 Here is an amazingly simple and effective application that applies the photovoltaic properties of LEDs. Two identical extremly simple Arduino platforms are used. Each of them is fitted with a LED and a pushbuton. In idle mode, the LED is biased in photo sensing mode, waiting for potential signal. Each time the push […]

I/O LED (Part 5)

Part 1, 2, 3, 4, 5, 6 And now comes an example of an effective use of the I/O LEDs: single LED communication. the next coming  videos illustrate the operation of a simple but yet full of promises application. Two identical modules are used, each of them using an Arduino Nano, a LED and a switch. When pressing the switch, the sketch will […]

Tips and Tricks (11)

Previous T&T This tip deals with the upload of firmware from a VB.NET application. Take the time to read the avrdude instructions manual and copy paste the following code in your application. It is presented in its minmalist form in order to be self explanatory: Private Sub UploadFirmware( _ ByVal HexFile As String, _ Optional […]

Serial Comm Ports for ever and ever… (Part 7)

Part 1, 2, 3, 4, 5, 6, 7, 8 Oh nooooo. I missed that. Eventually, my serial comm port requires parity checking! This unexpetecd requirement forced me to revise the whole concept of bytes and bits reading in order to take into account the time necessary to compute parity and check it. Here is a little reminder on parity Parity helps insuring that […]

Serial Comm Ports for ever and ever… (Part 6)

Estimate a baud rate based on the reading of 0x55 byte

Serial Comm Ports for ever and ever… (Part 5)

Part 1, 2, 3, 4, 5, 6, 7, 8 This posts contains a couple of illustrations of the assembled prototype. It uses a standard Diecimila (ATMEGA 168 based) board, an Adafruit Industries proto shield. There are few components around a MAXIM DALLAS Max232, capacitors, leds and a 9 pin sub-D connector. As you can see, I am using exhaustlively a set of preassembled […]

Serial Comm Ports for ever and ever… (Part 4)

Part 1, 2, 3, 4, 5, 6, 7, 8 You will find thereafter an improved version of the previously described read and write routines. Instead of using a fixed length buffer for storing the data to be sent and another one for recording the incoming data, the readBytes function shall return a vector containing the incoming data. In addition to the better look […]