Archive for the ‘Communication’ Category

TASCAM Sound Recorder (Part 4)

Part 1, 2, 3, 4 And here is the driver code. Nothing exceptional just plain good’ol arduino code. Check the writeByte function which contains few tricks and optimizations that are mandatory to achieve a proper timing. Ultimately this code contains a pretty versatile bit-bang UART writer that you may want to reuse in various applications. Enter […]

TASCAM Sound Recorder (Part 3)

Part 1, 2, 3, 4 As per product reviews on the web and as per my personal experience, the DR-40 picks up noises generated by the handling of the device. One way to prevent such noises consists in using a wired remote controller namely the Tascam RC-10. The key component from this option is a […]

FN-M16P MP3 player (Part 2)

Part 1, 2 As seen in the previous post, the MCU (e.g. arduino) and the module are talking each other through a serial communication (UART) at a quite modest rate of 9600 baud. Data is exchanged as packets of 10 bytes according to the following structure: Byte# Function Value Comments 0 Start Byte 0x7E constant 1 […]

PLD (Part 4)

Part 1, 2, 3, 4, 5, 6 Using the HL2 PLD (Place and Leave Device) is easy and usefull. We ran the earliest tests on… soil moisture. The reason why we chose this one is that I have always liked to have a green plant in my office and this one might last longer than the others. Because it is fitted […]

Simple command parser (Part 2)

Part 1, 2 In the previous version, the command parser is using one single alpha character as an opcode while the argument is computed on the fly using simple arithmetic. In this version, the opcode is extended to (almost) any number of characters and the argument is stored in a vector which is then converted […]

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 […]

Publication of the day

I am very glad to announce the first official publication involving the PlainDSP kit and the team behind the scene. We also congratulate Kostas and his team for designing such an awesome detector. Although PlainDSP kits can be used in the context of ludic applications, it provides all the means necessary for the design of much […]

When the compiler matters (Part 1)

Part 1 Recently, I worked on a library to manage LED strips. It worked perfectly using the Window’s version of Arduino. It worked as well on the GNU/Linux’ version with a LED strip… but not with another strip ! An advanced issue for an advanced headache… In the Arduino environment , when the “verify” or […]

Memory (Part 5)

Part 1, 2, 3, 4, 5, 6, 7 The code sample from the previous post shows how to read and write bytes on the EEPROM chips. Just fine !  But what about reading and writing other types of data such as short and long integers or floating point values ? This post contains an example of use of the PlainSPI_EEPROM library which […]

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”