Show Posts
Pages: [1] 2 3
1  Products / Arduino Due / Re: Arduino Due bootloader explained on: April 11, 2013, 10:50:37 pm
If someone wonders why the board is booted like that, and what is that baud rate 1200 hack, or would like to build their own firmware without using Arduino.
I have a little write-up of my findings, explaining how things are booted and flashed on Arduino Due/SAM3X in the playground - here:

In your little write-up, you wrote, "flash it over the ICSP header with AVRISP technique". Is that technically correct with an ARM-based mCU?

2  Products / Arduino Due / Re: Arduino 1.5 Beta for Raspberry Pi? on: April 11, 2013, 10:45:02 pm
Unfortunately it does not look as if it will be viable. The IDE runs far too slowly to be usable, and compilation takes far too long. I don't have a correctly working toolchain yet, and compiling one takes many hours per attempt - I have not found the magic combination of options which works.

Thanks for finding out for me. Is it possible to get bossac compiled for Raspberry Pi Raspbian OS? (Similar to avrdude...) Or can Raspberry Pi upload to Due via alternative (non-bossac) method?
3  Products / Arduino Due / Defective LiquidCrystal.h with DUE on: April 11, 2013, 10:36:50 pm
Problem: Standalone LCD not possible

Hello! I may have discovered a serious defect with the default LiquidCrystal.h included with Arduino IDE 1.5.2. Unlike the AVR boards, the DUE can't use the LCD when it is not connected to a PC. What I mean to say is, it malfunctions when it does not have PC communications.


#include <LiquidCrystal.h>

LiquidCrystal lcd(7,8,9,10,11,12);

void setup() {
  lcd.begin(16, 2);
  lcd.print("hello, world!");

void loop() {
  lcd.setCursor(0, 1);

The undesirable effect is... A working LCD with useless data. Possible adjectives: garbled, scrambled.

Question: Is there a way to get the LCD to work on the DUE without have a computer connection?
4  Products / Arduino Due / Re: Arduino Due libraries (official and 3rd party) on: April 09, 2013, 09:55:13 am
The Time library has been updated for compatibility with Arduino Due.

A Due-specific example was added, using Markus Lange's rtc_clock library to access the Due's on-chip RTC.

What on-chip RTC? I just built a DS1307 project for Arduino Mini; does the Arduino Due have an internal RTC so a chip like DS1307 is not needed?
5  Products / Arduino Due / Arduino 1.5 Beta for Raspberry Pi? on: April 09, 2013, 09:45:25 am
Has anyone compiled Arduino IDE 1.5.2 for Raspbian OS (armv6l-based Debian Wheezy Linux)? Presently, only Arduino IDE 1.0.1 exists in Raspbian OS repositories.

The instructions for compiling Arduino from source is, kindof sketchy, and because it says "Sun Java SDK" is needed, it may not compile on the Raspberry Pi, itself.

If Arduino IDE 1.5.2 can run on Raspberry Pi, then we have the "ARM programming ARM scenario" when it comes to programming the Arduino DUE. It's just a thought.

As of this writing, I'm setting up bossa on my Xubuntu Linux system in preparation for compiling C source code for the Arduino DUE without using Arduino IDE.
6  Products / Arduino Due / Re: Multiplex7Seg for Due??? Solution in progress... on: April 07, 2013, 09:11:11 pm
The timer library posted in the libraries section in this forum appears to be rather good (insulates one from the chip registers) - you could use that to generate an even every second to do a clock or counter etc.

That's an idea, but haven't worked directly with timers. I think the original AVR library was using timer2. For Multiplexing 7-segments, it needs a constant refresh. I'll check it the timer library. Thanks.
7  Products / Arduino Due / Re: Multiplex7Seg for Due??? Solution in progress... on: April 07, 2013, 01:33:08 am
I just created a Random Number generator using my revised Multiplex 7-Segment function...

If someone could make my Multiplex 7-Segment function into a time-sliced interrupt library, it would be very helpful. Thanks!

Marcos "Kuya Marc" Miranda
8  Products / Arduino Due / Re: Multiplex7Seg for Due??? on: April 06, 2013, 10:29:53 pm
My Official Blog Post...

It's Working with Error Handlers! I only wish I could run my multiplexing 7-Segment code as an interrupt or a clock slice, so I main loops does not need to run at turbo speed at all times.

Marcos "Kuya Marc" Miranda
9  Products / Arduino Due / Re: Multiplex7Seg for Due??? on: April 06, 2013, 10:35:20 am
Marc, you are running into the situation many of us have run into: many AVR libraries used AVR specific techniques to squeeze capability & speed out of the platform and they do not translate well to the Due or other platforms.

The forum here has some posts that are very good for specific situations but no one has compiled a comprehensive "how-to" (maybe we've left that to our good friend Marc?)

Thanks for the update. I may have just created a solution... It's a simple counting-up app, from 000 to 999. (it goes into my blog, tomorrow) The next question I have is, how do I embed it into an interrupt?

Between 7-Segment displays, I'm using delayMicroseconds(4500). I'm using three 7-segment displays.
10  Products / Arduino Due / Multiplex7Seg for Due??? Solution in progress... on: April 06, 2013, 07:58:03 am
Hello Everybody! When I got my Arduino Due, my Multiplex 7-Segment Display projects went to a halt.

I'm using the library from for my Arduino projects, and that library is exclusively AVR.

#include <avr/interrupt.h>

I have a display of three 7-segment LEDs that work, flawlessly with Arduino AVR boards. Has someone reworked this library to function with Arduino Due?
11  Products / Arduino Due / Re: Arduino Ethernet Shield compatibility? on: April 02, 2013, 01:20:15 am
Ok, thanks for the feedback.

12  Products / Arduino Due / Re: OneWire in Due on: April 01, 2013, 12:05:03 am
Hello World!

Sometime today, I'll be receiving my Arduino Due, and one of my active Arduino projects is using OneWire. After reading through all of the posts, I'm confused on what to do with my current OneWire library. Should I patch it, replace it, or make a new OneWire library parallel to the current one I'm using?

My Project: Arduino Mega 2560: Digital Temperature using DS18B20 and 7-Segments LEDs

I've removed the serial debugging code and simplified my sketch that works on my Arduino Mega 2560 clone.

From this Forum, I've downloaded and
13  Products / Arduino Due / Arduino Ethernet Shield compatibility? on: March 31, 2013, 11:37:42 pm
Hello World!

Sometime today, I'll be receiving my Arduino Due and I have a question on using my Wiznet Ethernet Shield from Seeedstudio (clone of Arduino Ethernet Shield). I've read that the Arduino Ethernet Shield (W5100) uses 5VDC; will that be a problem for the Due? I do want to smoke my Due with overvoltage.
Also, will I be able to use the Ethernet library with the Due?

Thanks in Advance,
Marcos "Kuya Marc" Miranda
14  General Category / General Discussion / What I'm doing with my Arduino boards... on: April 06, 2011, 01:36:33 am
For those that haven't read My Arduino Life page, here's a summary of what I'm doing with my Arduino boards:

  • Data Collection - SD Card
  • Information Server - Internal Use
  • Amateur Radio - AX.25 Communications
  • Automation & Robotics - Just Started...
  • Anti-Crime Tools - Active!
  • Data Security

Over 90% of my projects are closed source, due to the nature of my projects. For example, many websites have been attacked by Distributed Denial of Service (DDoS) attacks; I'm working on projects that will neutralize those attacks and restore Internet useability. Details of these type of projects defeat the project's purpose in the first place.

Another one of my complex projects, that uses my Seeeduino (ATmega328P) and Wiznet Ethernet Shield, is to rapidly change my passwords on a list of websites I've preselected, at the touch of a button. I call that the War Password Changer. This is also a closed source project that I made, just incase sites I use, such as Facebook, has been hacked into.

My venue is in Manila, Philippines... Unlike my past life in Seattle, Washington, USA, spontaneous events happen more frequently here. Examples of that are cable TV disruption, commercial electricity distruption, internet disruption, noisy neighbors, hot weather, typhoon, earthquake, etc. Data logging is one thing, and is probably the easiest task to do, but I'm focusing not only on automated reporting, but also with automated compensation strategies.

After a year of working closely with microcontrollers (in general), I have chose Arduino to be my primary development platform, duplicating development style with Atmel AVR Studio and CodeVisionAVR, and mimiking to other platforms (Zilog Z8, etc.). My idea is to have a working project, working beta project, working alpha project, and a few working backup projects. I also focus on error compensation; what to do when an error happens.

Over the past few months, many people have seen so many of my projects using LEDs and categorized those projects a "general" since those projects are found all over the internet. Many people don't know that, over the past 5 years, I have been doing stuff to improve my own health. An example of that is, I'm no longer a diabetic... Now, as for LEDs, I have learned how to successfully manipulate bits to reduce stress, induce sleep, and generate "Visual Caffeine". I've used soo many DigitalWrite()'s in For/Next loops with Millis to generate the flashing frequencies, that control my own brainwaves, even while my eyes are closed! I haven't tested with other people, including my wife, because I'm still learning how to manipulate my own brainwaves with my Arduino LED projects. Some of my LED projects do change my mood, for example, from angry to happy. And only some of my LED projects are still open source.

At this point in time, I have a dozen Arduino-compatible boards, two of which are pre-built onto printed-circuit boards. For the boards I've built, some have extra features, such as RTC and GPS, while others are barebones. Some are configured as I2C Slaves for my proprietary data encryption firmware. Each board is assigned task(s) that may or may not be replicated with other boards.

Over a month ago, I purchased the EGBT 9830 Bluetooth Module from e-Gizmo in Manila, Philippines. After some tweaking of bootloader code, I'm not only able to upload Arduino sketches via Bluetooth, but I can continue using my Palm Tungsten T for firmware production. Since I've been a Palm OS software developer between 2001 and 2007, I've decided to create new apps that allow me to use my USBasp AVR programmer and Bluetooth module to flash firmware/upload sketches via the Palm Tungsten T's Bluetooth transmitter.This will, soon allow me to write and upload Arduino sketches using only my Palm Tungsten T.

Recently, I've changed my own policies which involved the destruction of one of my blogs. Since I've concluded that most people viewed by PayPal donation links as offensive, I've decided to closed-source every project I've purchased with my own money. Some people will claim my decision was selfish, but giving away knowledge so others (except me) will benefit, does have its limits. Yes, as a hobbyist, I am buying my own gadgets, but my pockets rarely have any money in them. Those expectations of receiving monetary donations to share, are over. When ProtoStack sponsored my projects by introducing me to Atmel AVR, I shared what I could, but people expect more from me. When I taught myself Arduino, on my own, people expected me to give away what I've learned, skipping past my PayPal donation links. So the decision had to be made... Closed-Source all of my Arduino projects.

There's an alternate here... Though I'm not expecting, if someone sent me an Arduino board and/or Arduino shield for FREE, then all projects using those free components will be open source. Since I am a Stay-at-home Husband, I have a lot of time to do Arduino projects.

Kuya Marc

P.S. - Please, NO OFFENSIVE MESSAGES! I have had my share of negative feedback, already. I come to Arduino Forum for support. I'm expecting Forum moderators to delete offending messages before I see them. Thank you!
15  Community / Exhibition / Gallery / Now starting Robotics... on: April 06, 2011, 12:19:23 am
Actually, I'm starting to learn how to control DC motors with Arduino... Was supposed to being my Robotic projects in January, but it's better late than never.

This mechanism was/is part of a newly purchased Line Tracking Robot. Since I'm not crafty as others, I just bought this robot kit for the motor-gear mechanisms.

Yes, I'm still building with Solderless Breadboards despite numerous offers for mass production of PCBs.  I prefer a different design per board, because if I mass produce PCBs, each one would have to be patched/modified as needed.

Pages: [1] 2 3