Show Posts
Pages: [1] 2 3 ... 171
1  Using Arduino / Interfacing w/ Software on the Computer / Re: Turn Serial Monitor Data into Graph? on: July 29, 2014, 09:26:59 am
Shame your not using Windows else this would probably be ideal.
2  Using Arduino / Microcontrollers / Re: PWM didn't work on Atmega8 on: July 29, 2014, 02:34:01 am
I can confirm it works for me and you also don't need the pinMode command to set a analogWrite pin to output.
Attached is an image that shows the simple setup. The LED is pulsing as per the sketch.
For you LED to work as expected when not in the final circuit points to a wiring error. Can you post the full final circuit your testing in that does not work?
Code:
void setup() {
//  pinMode(9, OUTPUT);
}

void loop() {
  for(byte x = 0; x < 255; x++){
   analogWrite(9, x);
   delay(5);
  }
}
3  Using Arduino / Networking, Protocols, and Devices / Re: Line Impedance for 75176 & Cat6 Cable on: July 28, 2014, 09:51:07 am
Find the manufacturers datasheet for your cable and you should find the info your asking for.
4  Using Arduino / Microcontrollers / Re: PWM didn't work on Atmega8 on: July 28, 2014, 09:34:56 am
I always set pinModes, my whole code
Nothing stands out to me as to why that should not work. If I get chance tomorrow I will dig out a mega8 and try the same test.
5  Using Arduino / Microcontrollers / Re: PWM didn't work on Atmega8 on: July 28, 2014, 06:10:35 am
Might be better to post your whole code instead of the single line.
Other posts I have read on this forum say you don't need to do pinMode when using a pin for analogue write but this may not be the case on older cores as used in the mega8. Did you set pin 9 to output?
Do you have a current limiting resistor on the LED else you may damage the arduino pin the LED is connected to. How is the LED wired?
6  Using Arduino / Sensors / Re: I bought 5 digital rotary encoders. 1 interrupt. on: July 28, 2014, 06:03:47 am
Haha, I was going to do a similar thing to make use of the AD9833 I now have sitting around but I will only use one encoder and make the encoder button press switch modes. I nether bothered trying frequency sweeps with the AD9833, is it any good (to lazy to write code now).
7  Community / Gigs and Collaborations / Re: Quick $5 for the first working response on: July 28, 2014, 05:53:33 am
Just move the close bracket as in this line of John's code.
Code:
  int destination = map(analogRead(A0), 0,1023, 10, 180);
8  Using Arduino / Installation & Troubleshooting / Re: Accidently flashed ATmega16u2 usb to serial converter from arduino board on: July 28, 2014, 05:48:38 am
I think these will be the same files as found in the below folder.
Code:
arduino\hardware\arduino\firmwares\atmegaxxu2\arduino-usbserial
9  Using Arduino / General Electronics / Re: voltage regulators on: July 27, 2014, 09:14:40 am
Use a buck converter instead.
10  Using Arduino / Project Guidance / Re: Using Large Text on: July 27, 2014, 08:39:30 am
So I misunderstood your writing about memory above... but nevertheless, if inserting my text or another long text I get an
'Exception in thread "Thread-1298" java.lang.StackOverflowError'....
I don't think Rob's PROGMEM code example would work as is (no reference to avr/pgmspace.h) but the problem your getting is the same one I had when trying to use long strings in a sketch and I think the problem is the IDE.
If you cut the strings up into smaller chunks then you will be okay. See attached example.
11  Using Arduino / Project Guidance / Re: Using Large Text on: July 27, 2014, 06:41:27 am
To put strings in flash memory and read them back have a look at PROGMEM.
12  Using Arduino / General Electronics / Re: What is MCU STC15L204 Wireless Development Board? on: July 27, 2014, 05:37:45 am
Could you also explain what STC15L204 used for? I mean as a UART device. I'm really curious about it. On the internet I didn't found someone that used this module.
It just converts the SPI data the NRF24L01 interface uses into serial (UART) data.
13  Using Arduino / General Electronics / Re: Best way to power 3w RGB LED? on: July 27, 2014, 02:54:26 am
using the schematic design above as an example...  this wouldnt work (as it is) being as there is two leds on one (constant current) 'circuit' and I want to individually PWM control each color.
Yes you need a separate driver per LED colour (Red, Green & Blue) but most larger LED's don't have a single large LED but several smaller ones in series (see image) and this is what the hand drawn schematic depicts.
14  Using Arduino / General Electronics / Re: What is MCU STC15L204 Wireless Development Board? on: July 27, 2014, 02:40:41 am
What is it used for? Trivial question, but can it receive/transmit data from different transceivers? I mean,  e.g. one master station receives data from other slave stations simultaneously.
Not simultaneously in the literal sense but I think you can have several of these all talking to each other or a central device.

Actually I would like to create a online data monitoring system to receive data from various places wirelessly. Over the project want to learn related things that can be useful.
There are several tutorials on using these transceivers if you search...
http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo
http://forum.arduino.cc/index.php?topic=138663.0
http://maniacbug.wordpress.com/2011/11/02/getting-started-rf24/
to name a few.


I am newbie, so have a trouble understanding the use of this UART device.
You probably don't need the extra bit that converts the wireless data to Serial (UART) so this will make it a bit cheaper. you only need this to send/receive radio signals. (I have no affiliation to the eBay site, it was just the first one I found.)
15  Using Arduino / Networking, Protocols, and Devices / Re: Having problems reading data from an ADC083x chip using SPI on: July 26, 2014, 10:58:27 am
Not tested as I don't have an ADC083 but check comments in the code. Specifically...
Why are you setting MOSI HIGH in loop()
transferAndWait('a'); is not sending the previously defined variable called a but the ASCII code for 'a'
I'm not sure const should be in this line 'byte transferAndWait (const byte x)'

Code:
#include <SPI.h>

void setup (void)
{
  // Not needed as SPI.begin sets these
  //pinMode(SCK, OUTPUT);
  //pinMode(MOSI, OUTPUT);
  //pinMode(MISO, INPUT);
 
  // It also sets the SS pin
  //digitalWrite(SS, HIGH);
  //pinMode(SS, OUTPUT);
 
  SPI.begin();
  SPI.setClockDivider(SPI_CLOCK_DIV128);
  SPI.setDataMode(SPI_MODE1);
}


void loop (void)
{
  byte a;
 
  digitalWrite(MOSI, HIGH); // What is this?
  digitalWrite(SS, LOW);
  transferAndWait('a');     // This is not the variable a your sending
  digitalWrite(SS, LOW);
  digitalWrite(SS, HIGH);
  delay(100);
}

byte transferAndWait (const byte x) // Does const work here?
{
  byte a = SPI.transfer(x);
  delay(20);
  return(a);
}
Pages: [1] 2 3 ... 171