Show Posts
Pages: 1 [2] 3 4 ... 242
16  Using Arduino / Networking, Protocols, and Devices / Re: Help! Program hangs at endTransmission when initializing Wii Classic Controller on: August 27, 2014, 11:58:55 pm
I well I can assure you it's not the code, so it could either be like you said a hardware issue or wiring issue. Could you post a picture of how it's wired?
17  Using Arduino / Project Guidance / Re: components needsed for 2 wheel trolley from eBay ? on: August 27, 2014, 11:52:44 pm
Quote
Does anyone have any experience of the quality of these 2 or 4 wheel "robot chassis" from eBay etc
they aren't that fast and they can be quite noisy.

Probably better off getting a cheap rc, or build one from Legos or an Erector set.
18  Using Arduino / Networking, Protocols, and Devices / Re: Help! Program hangs at endTransmission when initializing Wii Classic Controller on: August 27, 2014, 11:42:26 pm
If you want, you can try my library. It's in here, download the newest one at the bottom.
19  Development / Other Software Development / Re: New peek function for HardwareSerial on: August 27, 2014, 08:29:16 pm
The code I gave was just an example to show how the peek function would be useful.
20  Using Arduino / Programming Questions / Re: anyone can help me in this tiny code for the LCD display on: August 27, 2014, 07:43:16 pm
Not sure how this is different from your last post but before they are merged, you can learn from this.
I uses a different library, but it should be fairly simple to change to the one your using.

Code:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
uint8_t bar0[8]  = {
  0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0};
uint8_t bar1[8]  = {
  0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10};
uint8_t bar2[8]  = {
  0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18};
uint8_t bar3[8]  = {
  0x1C,0x1C,0x1C,0x1C,0x1C,0x1C,0x1C,0x1C};
uint8_t bar4[8]  = {
  0x1E,0x1E,0x1E,0x1E,0x1E,0x1E,0x1E,0x1E};
uint8_t bar5[8]  = {
  0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F};
int i,j=0, number=1;
LiquidCrystal_I2C lcd(0x20,20,4);  // set the LCD address to 0x20 for a 16 chars and 2 line display

void setup()
{
  Serial.begin(9600);
  lcd.init();                      // initialize the lcd
  lcd.backlight();
  lcd.createChar(0, bar0);
  lcd.createChar(1, bar1);
  lcd.createChar(2, bar2);
  lcd.createChar(3, bar3);
  lcd.createChar(4, bar4);
  lcd.createChar(5, bar5);
  lcd.home();
  lcd.print("Hello world...");
  delay(1000);
}
void loop()
{
  bargraph(analogRead(A0), 1, 0, 16); //  (pin, row, start on display, end on display)
  //bargraph(analogRead(A6), 3, 0, 20);
}
void bargraph(int data, int row, int start, int end)
{
  j = map(data, 0, 1023, 0, (6*end) - (6*start));
  if(number <= j){
    for(number; number < j; number++){
      i = number / 6;
      lcd.setCursor(i+start,row);
      lcd.write(number % 6);
    }
  }
  else {
    for(number; number > j; number--){
      i = number / 6;
      lcd.setCursor(i,row);
      lcd.write(number % 6);
    }
  }
  Serial.print(number);
   Serial.print(" ");
   Serial.println(i);
}
21  Development / Other Software Development / Re: Updated Wii Classic Controller Library on: August 27, 2014, 10:10:12 am
Another minor update.

Version 1.02:
  Added two new functions:

    SetLeftStick_Factors(byte, byte)
    SetRightStick_Factors(byte, byte)

    These multiply the returned values from the joysticks. 1: Lowest(0 - 31 range) to 8: Highest(0 - 248 range)

Sudo example:
Quote
SetLeftStick_Factors(1, 8 ); // X_axis, Y_axis

. . .

leftStickX() returns a range between (0 - 31)    // smooth
leftStickY() returns a range between (0 - 248) // choppy
22  Using Arduino / Project Guidance / Re: Help Design The Uber Arduino BBQ Trailer & Camp Site on: August 27, 2014, 08:42:16 am
What is your level of experience with electronics and electronic components as well as soldering?

Quote
Camp Control System: Wanted to integrate the 7" LCD screen into the trailer and arduino setup somewhere. It'd be nice to setup the touch screen to control different stuff around the camp like the music, the lights, and the grills.
Difficult but not impossible

Quote
Sound System: Wanted to add a few nice speakers and amp to the trailer. If they could be controlled by an arduino in some way, that'd be cool.
You can probably turn the AMPs on and off with a relay but as far as change a radio station from the radio itself, not going to happen, unless you make the radio yourself. (or get a small radio module).

Quote
Light System: Wanted to add both flood lights, and maybe some LED light strips that would respond to the music of the sound system.
Motorize Some Stuff: I think it'd be sweet if we could motorize some stuff.  Like maybe have it so the hot water heater setup so it can slide out from the side of the trailer and you can just connect the hoses to it.
Again not impossible if you have the right parts

Quote
Weather Station/Motorized Flag Pole: Something that would be cool is to have a weather station that alerts us to inclement weather. Maybe an anemometer could be added to a motorized flag pole to monitor stuff like that?
I am not sure there is a way to do this with an Arduino. smiley-sad
The flagpole however can be done if you have the right parts.
23  Using Arduino / Programming Questions / Re: Joystick robot controller on: August 27, 2014, 08:28:03 am
Before you're moved, see this thread. look at reply #19.

http://forum.arduino.cc/index.php?topic=262762.msg1855000#msg1855000
24  Using Arduino / Programming Questions / Re: External power supply for servos using 7805 on: August 26, 2014, 05:22:36 pm
Yes of course it is going to work but it is not good for the arduino. Once you put a load on the servo the arduino is dead.
25  Using Arduino / Programming Questions / Re: External power supply for servos using 7805 on: August 26, 2014, 04:05:37 pm
I don't know what else to tell you. The circuit looks good (other than the 9V battery) and the code should work. Maybe you just have a bad servo.
26  Using Arduino / Programming Questions / Re: External power supply for servos using 7805 on: August 26, 2014, 01:05:12 pm
The code says it should be on pin 9, but your picture shows its on pin 3.  smiley-wink Hmmm.

27  Using Arduino / Programming Questions / Re: 104 nano seconds on: August 26, 2014, 10:18:39 am
You have milliseconds and microseconds.

The arduino only has a 16Mhz crystal which is not nearly fast enough to do anything in nanoseconds.

What do you want to do in 104 nanoseconds?
28  Using Arduino / Programming Questions / Re: External power supply for servos using 7805 on: August 25, 2014, 05:19:57 pm
Well you still haven't posted the code you're using.
29  Using Arduino / Programming Questions / Re: External power supply for servos using 7805 on: August 25, 2014, 04:25:58 pm
1017 is a value based on a range of 0 - 1023 or ~0 - 5V.
To see the voltage from the pin, you need to multiply the value you get from the analogRead() by 0.00488759.

Code:
float V = float(analogRead(A0));

float V_final = V * 0.00488759;

Serial.println( V_final );

If you feed 5.7V into the analog pin, you will fry the Arduino Use a voltmeter!

30  Using Arduino / Programming Questions / Re: External power supply for servos using 7805 on: August 25, 2014, 12:52:53 pm
I have those exact servos, and though they are rate for 4.8 - 6.0V, they don't do so good at 5.0V. I am running them at 5.7V using a 7805 and a diode. Look at this for schematic LINK
Pages: 1 [2] 3 4 ... 242