Feeds:
Posts
Comments

How to control multiple Robotis Dynamixel AX-12 from a .NET Micro Framework environment.

The first step is to wire everything up, we use port 0 and 1 for serial RX and TX, and digital port 2 for controlling the half duplex communication. For this we need an 74LS241, take a look at the setup:

http://savageelectronics.blogspot.com/2011/01/arduino-y-dynamixel-ax-12.html

We need a 74LS241 connected this way:

  • Pin 2 to Pin 3 (data out to AX-12)
  • Pin 1 to  Pin 19 (connected to Digital 2 on NETMF)
  • Pin 18 (connected to RX on NETMF)
  • Pin 17 (connected to TX on NETMF
  • Pin 10 to ground
  • Pin 20 to Vcc

The next step is controlling this from code, the TinyCLR wiki helps us a bit:

http://wiki.tinyclr.com/index.php?title=Dynamixel_AX12

Here is the code for initializing the serial port to 1.000.000 mbps:

SerialPort serial = new SerialPort("COM1", 1000000, Parity.None, 8, StopBits.One);
serial.ReadTimeout = 100;
serial.Open();

//fix the baud on COM1 to non-standard 1000000
Register U0FDR = new Register(0xE000C028);
U0FDR.Write((8 << 4) | 1);//fix the fractional divider register

AX12_PacketHandler AX12 = new AX12_PacketHandler(serial);
AX12.SetLimits(1, 205, 818);
AX12.move(1, 205);

Continue Reading »

Some sea charts are just released as KAP files, without the accompanying BSB file. If you run into problems importing the KAP files, there is a way to generate the BSB files.

For example, these New Zealand maps: http://mce66.altervista.org/software.html#Free_Nautical_Raster_Maps are without the BSB files. The KAP files are generated with the MapCal tools (http://www.dacust.com/inlandwaters/mapcal/) and the original New Zealand DIR file is also on the website.

From the MapCal site, download the MC2BSBH tool and run it on the directory with the KAP files. A BSB file is generated for every KAP file.

MC2BSBH     chartcal.DIR -e BSB

Normally a BSB file can contain multiple references to KAP files (e.g. detail charts) but I still have to figure that out.

What would be the ideal high end sailboat instrument system so let’s have a look at the components we need (not yet thinking about how to integrate them all):

  • Some displays on the mast (20/20, triton?)
  • Speed/log/depth sensors (airmar?)
  • Wind speed and direction sensor
  • Compass
  • Heel and Pitch sensor
  • Central CPU
  • Barometer and temperature

So what are our options, for the displays not much, these have to be waterproof and daylight readable. The 20/20s are nice, and maybe add some new Triton displays to replace some analogue displays. Continue Reading »

The official B & G bearings for the wind angle and wind speed are quite expensive. Why not buy some 3rd party bearings for 10% of the original.496 mhu b&g

These should match the 213 and 496 Masthead units for Brookes and Gatehouse. Contact me for the exact bearing types to order.

Replacement is quite easy, remove the MHU from the mast, and there is one screw (secured behind a sticker) to remove to seperate the top and bottom parts. just replace the bearings and your windspeed sensor should work fine for a few more years.

B&G 213 MHUFor the 213 MHU, take a look at the picture to the left, the screws to open the unit are marked by the red arrows.

For the 496 unit, check out the pictures below (Thanks to JanW).

 

The concept is to generate the tiles for an OpenStreetMap or OpenSeaMap server published to Windows Azure. The advantage of Windows Azure Blob storage is that we can enable the CDN support (content delivery network) to send the tiles more quickly to the visitor.

Download winazurestorage.py and modify it in 3 places to hold your account keys and change the functions to use the real storage and not the development versions. Don’t change the CLOUD_BLOB_HOST value!

DEVSTORE_ACCOUNT=”youraccountname”
DEVSTORE _SECRET_KEY=”yoursecretkey”
Class BlobStorage, change the host to CLOUD_BLOB_HOST

Test winazurestorage.py by calling test.py.

Create a Windows Azure blob container (in this scenario named “testcontainer”)

edit “generate_tiles.py”

Add the following at the top:

from windowsazurestorage import *

find the function “def render_tiles” and at the last line after the im.save(tile_uri,’png256′) add:

blobs = BlobStorage()
name = str(z) + “/” + str(x) + “/” + str(y) + “.png”
blobs.put_blob(“testcontainer”, name, im.tostring(‘png256′), “image/png”)

Run generate_tiles.py and watch the tiles appear in your Azure Blob Storage

Domotica links

Hierbij wat links voor het meten van je energie verbruik (gas, water, electriciteit) met behulp van bijvoorbeeld een arduino.

http://www.enymate.nl/
http://www.hekkers.net/domotica/HowToMonitorGasUsage.aspx
http://bwired.nl/How_rfxcom.asp
http://blog.richard.parker.name/2009/02/09/reading-a-gas-meter-with-an-arduino-part-1/
http://www.currentcost.com/
http://www.efergy.com/
http://openenergymonitor.org/

Voor het gebruik van een CNY70 is deze link misschien handig, aangezien de CNY niet altijd even scherp “ziet”

http://www.aaamc.nl/softio/cny/

future posts

Here’s my todo list for writing articles about:

  • Importing buoys for openseamap.org
  • Importing lights for openseamap.org
  • Sailboat instruments system breakdown
  • Inexpensive Sailboat instrument system
  • B&G analysis
  • RepRap
  • Arduino / FEZ Panda II
  • and more…
Follow

Get every new post delivered to your Inbox.