background preloader

Hardware

Facebook Twitter

.: DTRONIXS :. » MiniPiio AIN. BeagleBoneBlack - Circuitco Wiki Support. This is the official BeagleBone Black Wiki maintained and supported by BeagleBoard.org a non-profit 501(C) organization.

BeagleBoneBlack - Circuitco Wiki Support

If you have any questions or issues with the content on this Wiki, contact Gerald Coley BeagleBone Black Description The BeagleBone Black is the newest member of the BeagleBoard family. It is a lower-cost, high-expansion focused BeagleBoard using a low cost Sitara XAM3359AZCZ100 Cortex A8 ARM processor from Texas Instruments. It is similar to the Beaglebone,but with some features removed and some features added.

Low Level Prog

Enable SPI with device tree on BeagleBone Black (copy-paste) Here is a copy-paste version of of how to enable SPI on the new BeagleBone Black.

Enable SPI with device tree on BeagleBone Black (copy-paste)

This version should work for 3.8.6 and 3.8.13 of the kernel. Update June 3 2013: I’ve updated the instructions to match the standards defined in the device tree overlay documentation. This overlay is currently in conflict with the HDMI firmware with audio support. A patch for that is being worked on. If you need SPI working right now, try SPI0 instead or disable the HDMI framer firmware.Update June 10 2013: There is a pending pull-request in the BeagleBoard kernel for splitting the HDMI overlay into audio and video. Start nano. GPIOs on the Beaglebone Black using the Device Tree Overlays. Simple-modbus - Modbus RTU libraries for Arduino. SimpleModbus is a collection of Arduino libraries that enables you to communicate serially using the Modicon Modbus RTU protocol.

simple-modbus - Modbus RTU libraries for Arduino

Both SimpleModbusMaster & SimpleModbusSlave implements function 3 and 16 in addition SimpleModbusMaster implements function 1, 2, 4 and 15. Broadcasting is supported on both libraries for function 16 and 15 on the master. Both libraries share the exact same API. There are only two required functions modbus_update() and modbus_configure(). Both libraries have been tested extensively on commercial equipment like LS Industrial PLC's, Schneider equipment, Ascon equipment, Siemens PLC's, Selco alarm panels and various commercial panel meters and indicators. The libraries are very robust and non blocking, all communication takes place in the background allowing your code to run without any delay in execution (well almost). The libraries are written with an object orientated approach using C and does not make use of C++ object constructs. Note!! Firmware VMC Helios - Wiki LOGre. Microchip PIC. Libmodbus/doc at master · stephane/libmodbus. Enable serial/UART/tty on BeagleBone Black.

Update July 3. 2013: You might have to change the tty settings for the port.

Enable serial/UART/tty on BeagleBone Black

Before catting the device, try this: stty -F /dev/ttyO4 raw stty -F /dev/ttyO4 9600 Google “man stty” if you are unsure what this means.. There has been talk of having to rebuild Ångström in order to enable a serial port with the new kernel. That is not necessary. The Device Tree Compiler (DTC) came installed on my BBB, so the compilation was fairly painless (once I figured out that the oscilloscope was connected to the right BeagleBone..) UART4 in the BBB_SRM is UART5 in the device tree system and ttyO4 on the bone.

On your beaglebone, start nano: nano enable-uart5.dts Copy-paste the following into nano: Save the file(Ctrl-o) Exit nano (Ctrl-x) If you have a BeagleBone Black, you can compile firmware for device tree overlays without installing squat: Documentation. A Modbus library for Linux, Mac OS X, FreeBSD, QNX and Win32 libmodbus is a free software library to send/receive data according to the Modbus protocol.

Documentation

This library is written in C and supports RTU (serial) and TCP (Ethernet) communications. The license of libmodbus is LGPL v2.1+ and the licence of programs in the tests directory is BSD 3-clause. The documentation is provided with libmodbus releases as man pages (generated from doc sources). You can also browse the documentation of the different releases of libmodbus: See the Wiki for general informations. Code Sample modbus_t *mb; uint16_t tab_reg[32]; mb = modbus_new_tcp("127.0.0.1", 1502); modbus_connect(mb); /* Read 5 registers from the address 0 */ modbus_read_registers(mb, 0, 5, tab_reg); modbus_close(mb); modbus_free(mb); External Documentation. A13-OLinuXino.