Friday, March 30, 2012

Bored on duty

So it's 24 hour duty time. Again. (Insert unhappy face)

So I took time to tweak my phone, better keyboard and all, so bored

Thursday, December 8, 2011

ok side project for xmas since i am laid up after my knee surgery.


Grove - Starter Kit   
    Grove - Twin Buttons X1
    Grove - Twin LEDs X1
    Grove - Tilt X1
    Grove - Buzzer X1
    Grove - Rotary Angle Sensor X1
    Grove - Temperature Sensor (Analog) X1
    Grove - Smart Relay X1
    Grove - Protoshield X1
    Grove - Base Shield X1
    LCD1602 Baseshield + LCD X1
    GROVE Cable X10

plus the following extras
   Grove - Tilt Switch
   Grove - 3-axis Accelerometer
   Grove - Touch Sensor   
   Grove - Vibrator


Add to it one Arduino



Next mix in some Modk.it.

This will be a system for kids to use super easy. Aka my nieces and nephews. Since the modk.it is still in alpha, I asked to help them out getting the linux version up and running. Edward Baafi was kind enough to say yes.

Tuesday, November 22, 2011

ok more work on the cnc





basic layout of the hardware has started. With the options on i want. Each axis will have controls and a menus system with 4 extra buttons for features later. etc.So I got 3 axis control so far. with digital reads for them and a control system for each axis. Which mean I am a limb short. The 5 buttons in the row over lcd are the menu control buttons. and the wires run out to limits.

shown here
but they got kicked for optical ones first thing

Tuesday, November 15, 2011

More Stm32f4

OK bit of a code post

First open a terminal to start up the listener so i can program the board

$ cd stlink.git/
$ sudo ./gdbserver/st-util fu bar


next to send a program to the board in a new terminal

cd ~/stlink.git/example/blink

make CONFIG_STM32F4_DISCOVERY=1

$ arm-none-eabi-gdb
(gdb) target extended localhost:4242
(gdb) load blink.elf
(gdb) continue

Control-C stops the program

and quit ends and starts the program on the board automagicly.

Now this is just with an example and using the post below to get my build environment up and running.

Had  no issues with programing or anything but when i reset - i.e unplugged the board the program was not running. Firing up the gdb and repeating these commands

$ arm-none-eabi-gdb
(gdb) target extended localhost:4242
(gdb) continue

and only one led blinks. Not the 4 in the center of the board.... More to follow as i figure this out.

yep i am stupid

Might help if i program the flash not the ram eh?


./flash/flash write path/to/file_name.bin 0x8000000

works just fine! With my ability to program the board and upload code to both the flash and the ram, I am all set not to go back to windows and have to finish deployment from there to the target boards. Next on the chopping block to is to gleam out how to do proper usb identification for my device. I.E a usb CNC Machine with Serial Communications. Which hopefully is not that hard. Seems someone has do a bit of CNC gcode converting software for stm32 already so after i figure out this usb crap i am going to have a look at that.

Monday, October 31, 2011

ok got my stm23f4 to compile code under linux and up load it to the board using the tutorial here

http://cu.rious.org/make/stm32f4-discovery-board-with-linux/

awesomeness