Friday, February 20. 2009Google Sync
On my HTC Touch Cruise phone, I'm using a Android Linux and WM6 dual-boot setup. Up to now, when using WM6 on my phone I used to sync my phone with OGGsync to sync with Google Calendar. The problem was that it was a limited version (no automatic syncing) if you didn't pay for it, and I didn't like the 10 euro fee. Not that it's that much, but manual syncing was fine. Every once in a while I had an appointment that wasn't synced yet, and I was late... Should have spent the 10 euros? Or not:
![]() Now you can finally sync directly with Google under windows mobile. You can currently only sync contacts and appointments. For GMail you'd probably use IMAP anyway. All syncing is two-way. It was worth the wait. It's much more integrated and runs more smoothly than OGGsync. Wednesday, February 18. 2009Comments (0) Trackbacks (0) DIY SD-Daughterboard for Sanguino and Arduino's.![]() The Bits From Bytes kits contain a board with SD-Card functionality. It is not clear what licence BfB will attach to it (it should be GPL for the Darwin based design, though). Anyway, SD support was also being developed in a truely open-source fashion based on the Sanguino, by Zach, Bruce Wattendorf and tested and developed in the field by Marius Kintel using the highly anticipated RepRap Motherboard. Most of you got an SD card with every digital camera that you buy. They are quite useless for high-res photo's, but excellent for printing instruction that aren't necessarily huge. After seeing another new release done on Sanguino based 3D printing from SD, I checked it out and I decided to jump on the bandwagon again. It's been way too long ago since I had time to play with my RepRap. After seeing the scematics and Marius Kintel's setup, I had enough confidence that I could make a stripboard version. I'm not going to sit waiting for the RepRap motherboard to be produced. If this works, I might mill my own boards on my RepRap. I soldered up a Sanguino and it worked instantly (blinking led probably means that the program is running). It's made by Zach (most cool things are), so I didn't expect any less I made a tiny daughterboard for SD using stripboard and a MULTICOMP Push/Push SD card holder (Farnell). I had bought this component exactly for the miraculous event that I had a spare time tinker with hardware. How I made itDisclaimer: Please correctly if I say something that is incorrect, I have no education in electronics, just some experience from tinkering. I used voltage dividers as described here. The scematic from the arduino forum Because I didn't have any 1K8 Ohm resistors, I used a 1.5K and 330 Ohm resistor in series for SD/MMC pins 1,2 and 5. These go to the ports SS, MOSI, MISO and CLK respectively. The labels for MOSI, MISO and CLK are on the silkscreen of the sanguino, numbered 4,5,6,7. MISO is a data IO pin and stands for Motherboard in, SD out. MOSI stands for, you guessed it, Motherboard OUT SD in. CLK is the clock, that ticks to signal the changing of data bits. [edit: the S actually stands for SPI, of course... but in my case it's SD I added a voltage regulator (L78L33) on the stripboard, so I just need 5 Volts on the board. I made a two pin header for power input, and a 90 degree angle header. End result. wired up to sanguino. Getting the Sanguino up and runningI followed the instruction here (no, I don't need windows), to install my Arduino environment and upgrade it to the sanguino environment. I downloaded the latest release of the sanguino files, here. [edit: Or so I thought... The official site lists an old version as the latest. 0013 is the latest as the time of writing!]. That's the sanguino-read-only version below: $ cd /home/erik/bin/ Uploading a program to the board (toggle a port) worked! Excellent. Getting the Sanguino to access my stripboard SD-daughterboardI got this: start Ok, that would've been too easy if it worked already. My first guess is that I needed to add pull-up and/or pull down resistors on the Card Detect and the Write Protect I/O pins. I connected these to A7 (pull down) and A3 (pull up), respectively. Just like a switch, common practice is to pull a voltage down to 0V with the switch. Therefor, the 'Card Detect' has to be LOW (Card inserted, switch closed) and the 'Write Protect' needs to be HIGH (no write protect). I installed disktype (sudo apt-get install disktype). Disktype tells you everything there is to know about a block device and its partitions: $ sudo disktype /dev/sdd Don't see anything wrong with this... I had been trying to include the libraries 'RepRapSD', but the ones in the metalab folder of Marius Kintel seem to be more current (please correct me if you have other findings!). You don't need to install them if they're in the project folder. I made these changes to the port assignments: After that, it still didn't work. When I couldn't think of anything else that I was doing wrong, and seeing how difficult it was to debug SD libraries that I'm unfamiliar with, I resorted testing the connections. When measuring I detected a loose soldering joint! I sometimes use metal-fatigue to snip of wire ends that have been soldered. The uneasy feeling in the back of my brain was warranted: this has probably created a broken joint in the soldering connection. After checking all the points of the voltage divider I gave it another go... and miraculously... SD Hardware works, next challenges in software[off-topic] There's a reason I've hardly had any time to work on my RepRap. I've been very busy with graduating. I'm in my last year of my studies and within half a year I will hopefully be free to work on the more important things in my live. I'm very good at taking on new commitments that I sometimes hate even while the projects are pretty cool. They might even pay well, but the real solution to feel well about what I do is IMPORTANT things first. And by important, they should be important to ME. I can get really excited and say, this can be done better. Before I know it I'm working on doing something that wasn't my responsibility but I managed to convince others that I'm the perfect candidate for the job and the soon see that there indeed was room for improvement. The result is a big deviation from what I intended to do with my time. And because I intend to do as I say, I am forced to stop working on the project that is most important to me in my whole life (unless you count relations with people I love as 'projects'). [/off topic] Back on topic. With working SD hardware, I get the following: )start Opened dir / on SD. First file: TEST.TXT )start Opened dir / on SD. First file: TEST.TXT )start Opened dir / on SD. First file: TEST.TXT )start Opened dir / on SD. First file: TEST.TXT )start Opened dir / on SD. First file: TEST.TXT )start Opened dir / on SD. First file: TEST.TXT )start ... you get the point. I put a test file there with two lines of G-Code in it, called 'TEST.TXT'. The fact that you see 'start' multiple time implies that it's restarting. I get the feeling that I need to compile under windows or upgrade my ubuntu to 8.10, which I didn't get around to (see my emotional rantings about my distractions!) LESSONS LEARNED:
To be continued... [update] Using the windows version (slightly newer compilers) the sanguino doesn't crash: start First file: TEST.TXT ok:128 ok:128 error: Yet I still have to hook it up to the other boards of the 3D printer. [/update] |
QuicksearchArchivesCategoriesSyndicate This Blog |