Show Posts
Pages: 1 [2] 3 4
16  Using Arduino / Installation & Troubleshooting / Re: Connecting a Arduino Mini R4 to an MiniUSB on: March 28, 2013, 11:53:11 pm
Wow, that MiniUSB does have "character".

Okay, hook up the MiniUSB to the Arduino Mini GND, 5V, RX, and TX pin for pin (yes, TX -> TX, RX -> RX...).  For the auto-reset, you are going to need a 0.1uF ceramic capacitor going from the RTS on the MiniUSB to the R (Reset) on either side of the Arduino Mini.  If you do not have a 0.1uF on hand, you will have to manually reset when you upload the sketch and the "Binary Sketch Size" appears in the info window, press the reset button.

Hello!
It does indeed. Thank you for your fast response. I'll need to track down a supply of those things. (The R5 has its reset button on top, the R4 does not.) So that's what I need to do. I originally thought the cap I chose from my collection was the right size, but apparently not.
17  Using Arduino / Installation & Troubleshooting / Connecting a Arduino Mini R4 to an MiniUSB on: March 28, 2013, 09:55:20 pm
Hello!
I have a question, has anyone made use of the Mini R4 and connected the MiniUSB to it? Originally I was able to connect the two together and then upload to it the blink example from the series of sketches that come with the IDE. But now I need to load something completely new to the unit.

The description of doing so shown here, http://arduino.cc/en/Guide/ArduinoMini describes the R5 version, it did once show the R4 and accompanying instructions. Ideally both should be shown on that page.

I happen to have the R4 here, and need those instructions.
18  Using Arduino / LEDs and Multiplexing / Re: RGB LED on: March 11, 2013, 10:24:12 pm
Hello!
Update:
Both releases have been tried out. And the problem did not repeat itself. First time around the board was set correctly. Therefore there's no appropriate reason right or wrong why that happened.

Now that I know that it wants to work correctly, the next step will be to work out how to construct a sketch that allows me to send external data into a RGB display mechanism. But that's a very long time from right now.
19  Using Arduino / LEDs and Multiplexing / Re: RGB LED on: March 11, 2013, 10:07:49 pm
Quote
This can also happen if you do not select the correct type of arduino board in the Tools menu.

Hello!
I quite agree. I also grabbed both examples of 1.0.4 (Linux @32 bits and Windows) and promptly created an example for Slackware-13.37 for the Linux one and properly set my board style, the critter from May 2009, and the port the  USB0 one, and went ahead and built the code from above, and off I went.

I did not see the same complaint from the tool used to install the code on the board.

I am now going to go ahead and try the same sketch on this Windows computer via 1.0.4 and see what happens. I'm convinced it was just a normal jitter with regards to the tool.
20  Using Arduino / LEDs and Multiplexing / RGB LED on: March 09, 2013, 06:54:16 pm
Hello!
Working with a regular Arduino for an RGB LED project. For this I chose to try out an application described on the Fritzing site and to wire it accordingly.

The code (Stated below) works properly. But it also gave me this strange remark:
Code:
Binary sketch size: 1,604 bytes (of a 14,336 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0xfe

The first one I know tells me that my sketch is using a small amount of memory of the AVR. The second is I believe a nag statement from the tool used to write it to the AVR. But what does it mean?

And this is the code used:
Code:
/*
  RGD LED
 
  Current Code
  Created by Derek Erb 22/02/2013
  Modified 22/02/2013
 
  Requirements :  1 x RGB LED
                  3 x 320 resisters
 
  0.05  ON / OFF constants
  0.04  Blinking green at the end
  0.03  DigitalWrite instead of AnalogWrite {abandoned}
  0.02  RGBOut function
  0.01  Light each colour once
*/

// Pins
const int iRed = 8;
const int iGreen = 9;
const int iBlue = 10;

// ON / OFF
const byte ON = 0;
const byte OFF = 255;

//////////////////////////////////////////////////////
//
// SETUP
//
void setup() {
 
  // Light up red first
  RGBOut(ON, OFF, OFF);
  delay(2000);
 
  // Light up green
  RGBOut(OFF, ON, OFF);
  delay(2000);
 
  // Light up blue
  RGBOut(OFF, OFF, ON);
  delay(2000);
 
  // All off
  RGBOut(OFF, OFF, OFF);
  delay(3000);
 
  // Colours
  RGBOut(ON, OFF, OFF);   // Red
  delay(1000);
  RGBOut(ON, ON, OFF);    // Yellow / Green
  delay(1000);
  RGBOut(OFF, ON, ON);    // Pale blue
  delay(1000);
  RGBOut(OFF, OFF, ON);   // Blue
  delay(1000);
  RGBOut(OFF, ON, OFF);   // Green
  delay(1000);
  RGBOut(ON, OFF, ON);    // Pink
  delay(1000);
  RGBOut(ON, ON, ON);     // White (all on)
  delay(1000);
 
  // All off
  RGBOut(OFF, OFF, OFF);
  delay(3000);

  // Blink Green 10 times
  for (int i = 0; i < 10; i++) {
    RGBOut(OFF, ON, OFF);   // Green on
    delay(200);             // 200 ms
    RGBOut(OFF, OFF, OFF);  // All off
    delay(200);             // 200 ms
  }
 
  // All off
  RGBOut(255, 255, 255);
}
 
//////////////////////////////////////////////////////
//
// LOOP
//
void loop() {
  // We'e only going to run through SETUP once
 
}

//////////////////////////////////////////////////////
//
// RGBOut
//
void RGBOut(byte bRed, byte bGreen, byte bBlue) {
  analogWrite(iRed, bRed);
  analogWrite(iGreen, bGreen);
  analogWrite(iBlue, bBlue);
}

As it happens despite what the tool is complaining about, the code works.
21  Using Arduino / Displays / BiColor LED errors on: November 06, 2012, 01:47:45 pm
Hello!
I tried to build both examples for the BiColor LED example set found here http://arduino.cc/playground/Code/BiColorLED

I received this error message:
Code:
C:\Users\GCL\Documents\Arduino\libraries\BiColorLED/BiColorLED.h:24: note:                 BiColorLED::BiColorLED(const BiColorLED&)
BiColorLED.cpp: In function 'void loop()':
BiColorLED.pde:-1: error: 'class BiColorLED' has no member named 'getColor'

And it first surfaced with this one:
Code:
#include <BiColorLED.h>

// Simple demo of features available in V1.0 of the BiColorLED library
// (C) 2012 Wolfgang Faust

// To see the effects of this example, just plug a bi-color LED
// into pins 4 and 5, along with the appropriate resistors.

BiColorLED led=BiColorLED(4,5); // (pin 1, pin 2)
unsigned long time; // Time the colour was last changed

void setup() {
  // BiColorLED doesn't need anything here
}

void loop() {
  // Change the colour once each second; Order: 1, 3, 2
  if (millis()-time > 1000) {
    int color=led.getColor();
    if (color == 1) {
      color=3;
    } else if (color == 3) {
      color=2;
    } else if (color == 2) {
      color=1;
    } else { // Starts at 0, or in case anything bizzarre happens to the color var
      color=1;
    }
    led.setColor(color);
    time=millis(); // Keep track of time of colour change.
  }
  // led.drive() MUST be called frequently (at least once every 10 ms)
  // for the yellow to work. Otherwise, it will just stay red or green.
  // This means that you should avoid calling delay().
  // Before 10ms, there is no flicker visible
  // At ~10ms, there is a barely noticible `jitter'
  // At ~15ms, the flickering is quite obvious.
  led.drive();
}

Oddly enough the errors also repeated themselves here:
Code:
#include <BiColorLED.h>

// Simple demo of blinking using BiColorLED library
// Requires v1.1 or greater
// (C) 2012 Wolfgang Faust

// To see the effects of this example, just plug a bi-color LED
// into pins 4 and 5, along with the appropriate resistors.

BiColorLED led=BiColorLED(4,5); // (pin 1, pin 2)
unsigned long lb; // Time the colour was last changed

void setup() {
  Serial.begin(9600);
  led.setColor(1);
  led.setColor2(2);
  led.setBlinkSpeed(1000);
}

void loop() {
  // led.drive() MUST be called for blinking (and yellow) to work.
  led.drive();
  if (lb != led.lastBlink) {
    Serial.print(led.blinkSpeed);
    Serial.print(":");
    Serial.println(led.lastBlink);
    lb=led.lastBlink;
  }
}

To be honest this is the first time I've seen that error before and I've got no idea what did cause it. I might add I just returned to the Arduino from a long absence and am pleased to see the arrival of version 1.01 of the IDE.

Update: I've tried it on the earlier releases. And it seems that on most of them they seem to work, I did get interesting errors on one but not the other.
22  Using Arduino / Installation & Troubleshooting / Re: Arduino Mini Questions on: February 15, 2012, 07:27:19 pm
Hello!
Understood. I've already explored the schematic, seven or eight times since buying both two years ago, Saturday. However that schematic is out of date. This is an ATmega168 based device, ideally it should be a 328 based one, but that's what the vendor had available. smiley-zipper

I meant regarding the Tx and Rx positions on the middle left of the device, and the pins. Are these the same as the connections on say an NG?

Reason why I chose that one, rather then the 2009 [Duemilanove] design which is what I also bought from the same vendor, is because the NG is mentioned on the pages for connecting the Mini to the computer system which the chap who wrote that page had on hand. http://www.arduino.cc/playground/Learning/ArduinoMini Here.

----
Gregg (doctorwho8)
This signature will continue to glow as long as there is time to work.
23  Using Arduino / Installation & Troubleshooting / Arduino Mini Questions on: February 15, 2012, 06:31:13 pm
Hello!
Question 1:
The Arduino Mini (v04) is being installed and wired according to the diagrams on the pages for the USB device and the actual Arduino pages. (Statement first, question now.) Are the Tx/Rx points on the bottom left of the device the same ones as the pins also marked as such?

Question 2: Besides the obvious power requirements, are there any software ones I need to observe?
---
Gregg (doctorwho8)
----
This signature is glowing from chronitons, be careful.
24  Using Arduino / Programming Questions / Re: Code Question concerning ap_ReadAnalog on: June 08, 2011, 06:02:40 am
Hello!
I quite agree.
And while your suggestions do make plenty of sense (Here it is just approaching 7AM, and a new rather hot and hazy summer style day is starting.)

I've begun to realize that if this whole idea is to work, it would require a near or total rewrite of the Malmo code to work properly now.

And that's only the regular Arduino code to to consider. They also posted a raw Processing blob that I've yet to consider.

This whole entire idea is yet another attempt of mine to consider an application for the Pachube http://www.pachube.com to, ah, process and then respond to. I tried to get everything to work, about, two years previously. It didn't want to work then.

I'll have more luck when their entire site is available.
-----
Doctor Who8
25  Using Arduino / Programming Questions / Re: Code Question concerning ap_ReadAnalog on: June 08, 2011, 05:46:41 am
Hello!
Thank you Mike. That solved on problem. I suspect since I've been out of the loop with regards to the Arduino, it should be obvious, but this one doesn't seem to be tagging anything as such:
Code:
  printInteger(value);

And of course its error routines that it causes:
"ap_ReadAnalog.cpp: In function 'void loop()':
 ap_ReadAnalog:41: error: 'printInteger' was not declared in this scope
 ap_ReadAnalog:44: error: 'printByte' was not declared in this scope".

I suspect that by turning it around, it would be
Code:
Integer.print(value);

But that is where I'm not so sure.
----
Doctor Who8
The only thing that time causes is itself.

26  Using Arduino / Programming Questions / Code Question concerning ap_ReadAnalog on: June 07, 2011, 09:52:37 pm
Hello!
I grabbed this example:
Code:
/*
*  ap_ReadAnalog

*  Reads an analog input from the input pin and sends the value
*  followed by a line break over the serial port.
*
*  This file is part of the Arduino meets Processing Project:
*  For more information visit http://www.arduino.cc.
*
*  copyleft 2005 by Melvin Ochsmann for Malm� University
*
*/

// variables for input pin and control LED
  int analogInput = 3;
  int LEDpin = 13;
 
// variable to store the value
  int value = 0;
 
// a threshold to decide when the LED turns on
  int threshold = 512;
 
void setup(){

// declaration of pin modes
  pinMode(analogInput, INPUT);
  pinMode(LEDpin, OUTPUT);
 
// begin sending over serial port
  beginSerial(9600);
}

void loop(){
// read the value on analog input
  value = analogRead(analogInput);

// if value greater than threshold turn on LED
if (value < threshold) digitalWrite(LEDpin, HIGH); else digitalWrite(LEDpin, LOW);

// print out value over the serial port
  printInteger(value);

// and a signal that serves as seperator between two values
  printByte(10);

// wait for a bit to not overload the port
  delay(10);
}
I glommed it from http://webzone.k3.mah.se/projects/arduino-workshop/projects/arduino_meets_processing/instructions/ldr.html

The code fragment:
Code:
beginSerial(9600);

caused it to throw an obvious exception,
 "ap_ReadAnalog.cpp: In function 'void setup()':
  ap_ReadAnalog:30: error: 'beginSerial' was not declared in this scope
  ap_ReadAnalog.cpp: In function 'void loop()':
  ap_ReadAnalog:41: error: 'printInteger' was not declared in this scope
  ap_ReadAnalog:44: error: 'printByte' was not declared in this scope"

I confess I don't know really know what it means. here. It may have worked for the release available in 2005, but definitely not for 0022..

Suggestions please
---
Doctor Who8
Be careful of things that go BLEEP!
27  Using Arduino / Installation & Troubleshooting / ArduinoMini on: June 04, 2011, 12:22:44 am
Hello!
After buying this ArduinoMini and its related MiniUSB from the ITP store attached to NYU sometime ago, (little over a year, it was bought on 2/18/2010.) I decided to try it out.

I followed the instructions here: http://arduino.cc/en/Guide/ArduinoMini .

It states that the Reset lines need to be set accordingly, in this case, it says "Reset. Whenever this pin is connected to ground, the Arduino Mini resets. You can wire it to a pushbutton, or connect it to +5V to prevent the Arduino Mini from resetting (except when it loses power). If you leave the reset pin unconnected, the Arduino Mini will reset randomly."

It does not state that there are two of them, the reset lines. It only says that they need to be connected to the +5 line. Now would it be appropriate for myself to update the page, or should the creator, one David A. Mellis, do so?

After doing so incidentally the device responded exactly as did my regular one, a Dueilanove, respond. The chosen sketch incidentally was the classic LED one.
----------------------------------------------------------------------------------------------------------------
Time moves sideways.
28  Forum 2005-2010 (read only) / Troubleshooting / Windows 7 64 and Cygwin 1.7.1 and current code on: January 05, 2010, 10:01:07 pm
[size=14]
Hello!
Well I can certainly confirm that the current code stored in SVN at Google Code works for me using Cygwin 1.7.1 will indeed build there.

My only problem is that with Windows 7, the system persists in thinking that the driversd for the FTDI thing is available on the Update site for Windows. Especially since I've already downloaded the appropriate ones for a 64 bit system.

Right  now I've got the Arduino running the code for an LCD display with a Sparkfun serial backpack. See here for details:
http://www.arduino.cc/playground/Learning/SparkFunSerLCD

I imagine I'll obtain other displays from Sparkfun on the Thursday.
/me
[/size]
29  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Source build from SVN is broken on: May 16, 2010, 08:05:14 pm
Hello!
But the site does not explain what to do to get a recent JDK installed. And then recognized by Cygwin so that the Ant tool can find the JDK and take it from there.
**********************
By contrast everything just works under Linux and then instructions for Linux are indeed complete. But that solution is reserved for a long-time project.
----
/me
30  Forum 2005-2010 (read only) / Bugs & Suggestions / Source build from SVN is broken on: May 14, 2010, 11:22:10 pm
Hello!
I just tried building the Arduino code from SVN and there were a lot of complaints. This is on Cygwin-1.7 on Windows Seven:
------
GCL@CmdrSkywalker /usr/local/src/arduino/build/windows
$ ./make.sh
Building processing.core...
updating PApplet with PGraphics api changes
Building the PDE...
src\processing\app\syntax\JEditTextArea.java:27: package processing.app.syntax.i
m does not exist
import processing.app.syntax.im.InputMethodSupport;
                               ^
src\processing\app\syntax\JEditTextArea.java:136: cannot find symbol
symbol  : class InputMethodSupport
location: class processing.app.syntax.JEditTextArea
  private InputMethodSupport inputMethodSupport = null;
          ^
src\processing\app\syntax\TextAreaPainter.java:15: package processing.app.syntax
.im does not exist
import processing.app.syntax.im.CompositionTextPainter;
                               ^
src\processing\app\syntax\TextAreaPainter.java:38: cannot find symbol
symbol  : class CompositionTextPainter
location: class processing.app.syntax.TextAreaPainter
  protected CompositionTextPainter compositionTextPainter;
            ^
src\processing\app\syntax\TextAreaPainter.java:83: cannot find symbol
symbol  : class CompositionTextPainter
location: class processing.app.syntax.TextAreaPainter
   public CompositionTextPainter getCompositionTextpainter(){
          ^
src\processing\app\syntax\JEditTextArea.java:139: cannot find symbol
$
location: class processing.app.syntax.JEditTextArea
                        inputMethodSupport = new InputMethodSupport(this);
                                                 ^
src\processing\app\syntax\TextAreaPainter.java:85: cannot find symbol
symbol  : class CompositionTextPainter
location: class processing.app.syntax.TextAreaPainter
       compositionTextPainter = new CompositionTextPainter(textArea);
                                    ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 errors

zip error: Nothing to do! (try: zip -rq ../lib/pde.jar . -i .)

Done.
-----
This also happened with the exact same problem on Slackware Linux-12.1.
--
/me
Pages: 1 [2] 3 4