Show Posts
Pages: 1 ... 84 85 [86] 87 88 ... 179
1276  Using Arduino / Installation & Troubleshooting / Re: Compilation became incredibly slow[BACK again!!) on: June 13, 2013, 02:10:52 am
1. Win7 64 bit Athlon 4 cores 12GB...    BLINK takes 90 to 100 seconds to verify (after first verify which is longer)
2. Win7 64 bit  AMD sempron 2GB  Blink verifies in 2 SECONDS OR LESS!!!
3. WinXP 32 bit INTEL Quad core 2 GB   BLINK takes 70 to 90 seconds to verify

On machine 2, more complex examples take less than 3 SECONDS!
The general consensus normally points to anti-virus software being the culprit. What's different about the Sempron machine compared to the other 2. Do the machines have Java Console installed? From other peoples descriptions I wondered if the IDE's "built-in" Java does not get used if the full Java console is available and changes in the full console is slowing the game down.
1277  Using Arduino / Networking, Protocols, and Devices / Re: Help: What do I need for this bluetooth transceiver? on: June 13, 2013, 02:02:07 am
May I know if you solder the header pins to the BT device or you simply bend the pins to "touch" on the connecting surface to the BT device?
I have bent the pins to touch and then soldered them. I only bent the pins needed (8 in this case) and left the rest free.

I was thinking if there is any kind of holder to the BT device so that the setup can be temporary.
In hind sight I should have soldered the headers to a bit of stripboard first and then mount the BT module as this would make the whole thing more robust and stable. I'm dreading trying to remove the setup from the breadboard as I may damage the module.
1278  Using Arduino / Programming Questions / Re: Reading binary data on: June 13, 2013, 01:54:48 am
Actually, I think the big bottle neck here is the SPI bus. I don't know what or when FastSPI is using the SPI bus, but I would imagine it basically takes over the hardware SPI bus at
I think it depends on what display your driving as FastSPI supports several display protocols, for this string FastSPI only uses one pin that is user selectable so does not need to be hardware MOSI pin.
1279  Using Arduino / Displays / Re: [SOLVED] "LCM1602 IIC A0 A1 A2" (+OTHERS) I2C Controller working with 20x4 LCD on: June 13, 2013, 01:40:16 am
I have taken a picture. Find it atached. This is still giving me 0x20.
A quick look at the datasheet for the PCF8574 say...
Slave address pins A2, A1 and A0 are held HIGH or
LOW to choose one of eight slave addresses. To conserve power, no internal pull-up
resistors are incorporated on A2, A1 or A0, so they must be externally held HIGH or LOW.
The address pins (A2, A1, A0) can connect to VDD or VSS directly or through resistors.
So the solder bridges sink the address lines to ground by default (to get address 0x20) maybe what you need to do is find out what side of a bridge goes to GND and then solder a wire from the other side of the bridge to VCC to see if that changes the address.
1280  Using Arduino / Project Guidance / Re: Help with LED driver on: June 12, 2013, 10:37:30 am
Here is some code I wrote a while ago that I seem to remember does the conversion needed to LedControl  to suit common anode displays. It was a while ago and I have broken down the test rig so not sure if it works okay. It compiles but that's as far as I can test it now.

#include <LedControl.h>
#include <Wire.h>
// DIG Numbers on MAX7219
//     AAAAA
//  2 F  7  B 6
//    F     B
//     GGGGG
//  3 E  1  C 5
//    E     C
//     DDDDD  DP
//       4    0
/*  Common Anode 4 Digit 7 Segment Display To MAX7219 Pin Connections (* = Anode)
      LED     MAX7219
   (D1*) 1      22 (SEG DP)
   (D2*) 2      14 (SEG A)
     (D) 3       3 (DIG 4)
 (L1/2*) 4
     (E) 5       7 (DIG 3)
   (D3*) 6      16 (SEG B)
    (DP) 7       2 (DIG 0)
   (D4*) 8      20 (SEG C)
    (L3) 9
     (F)11       6 (DIG 2)
     (C)13      10 (DIG 5)
     (A)14       8 (DIG 7)
     (G)15      11 (DIG 1)
     (B)16       5 (DIG 6)
// numTable[] Segment Bits
//       0
//     -----
//  5 |     | 1
//    |  6  |
//     -----
//  4 |     | 2
//    |  3  |
//     -----  o
//            7
const byte numTable[] = {
    B00111111,  // 0
    B00000110,  // 1
    B01011011,  // 2
    B01001111,  // 3
    B01100110,  // 4
    B01101101,  // 5
    B01111101,  // 6
    B00000111,  // 7
    B01111111,  // 8
    B01101111   // 9

const int DIN = 12;                                 // DataIn pin (18)
const int CLK = 11;                                 // Clock pin (17)
const int LOAD = 10;                                // Load pin (16)

LedControl lc=LedControl(DIN,CLK,LOAD,1);

void setup() {
    /* Set the brightness to default value */
    /* and clear the display */

void loop() {
    static boolean dp=true;
    for (int y=0; y<10; y++){
        for (int x=0; x<8; x++){
            if (dp == true){
                lc.setColumn(0,x,(numTable[y] + 0x80));
    dp = !dp;
1281  Using Arduino / Networking, Protocols, and Devices / Re: Help: What do I need for this bluetooth transceiver? on: June 12, 2013, 10:19:04 am
A possible problem is the breakout board you linked to might not be fully suitable for your BT device as different pins are used for the LED depending on if you have a master or slave device and master also needs an extra pin to drop device into command mode.
You can solder to pcb pins but it's fiddly and not very portable.
1282  Using Arduino / Networking, Protocols, and Devices / Re: Pesky Ascii confusing me ! on: June 12, 2013, 07:22:07 am
(2) and (3) are ASCII control codes called 'Start of text' & 'End of text' respectfully, see this so I would assume you would use if ( == 2)
1283  Using Arduino / Displays / Re: [SOLVED] "LCM1602 IIC A0 A1 A2" (+OTHERS) I2C Controller working with 20x4 LCD on: June 12, 2013, 07:04:03 am
Yes, is the one that says "LCM1602 IIC A0 A1 A2" I did remove a0 and a2 and gives me de same address, 0x20.
Any Clue?
Strange, can you post a picture of A0-A2 pins you have cleared. It should have worked unless there is also a trace to cut under the solder bridge.
1284  Using Arduino / Displays / Re: [SOLVED] "LCM1602 IIC A0 A1 A2" (+OTHERS) I2C Controller working with 20x4 LCD on: June 12, 2013, 03:07:52 am
The bad news was they ALL have address 0x20 , so I see the same info in the 3 20x4 LCD Displays ( 2004).
Is there a way to change the address to 2 of these 3 circuits?.
If they are the same as Terry's image in the first post then removing the solder bridge(s) on A0, A1 or A2 so all three LCD's have different combinations should change the address. Remove a bridge and then use a I2C scanner to check the address has changed.
1285  Using Arduino / Project Guidance / Re: USB Communication on Standalone Arduino on: June 12, 2013, 01:57:56 am
If you use a programmer (USBtinyISP, AVR-ISP and several more) to upload the final sketch to your arduino then the bootloader is overwritten so you cannot just connect the device and upload a new sketch over USB/serial using the Arduino IDE you would need a programmer to either upload a new sketch or burn the bootloader onto the arduino again.
1286  Using Arduino / Networking, Protocols, and Devices / Re: How do I connect two slaves to the Arduino Uno? (SPI) on: June 12, 2013, 01:42:16 am
Most SPI and I2C connected devices have a small amount of internal memory that is used by the device to store configuration data, setting, results etc. Some of this memory may be accessible by the microcontroller (MCU) so it can set settings or read results data from the device and to do this the MCU needs to tell the device the register (think of it as memory address) to read/write to and the data to write.
The procedure I attached is used to write data to a SCP1000 (Barometric Pressure Sensor) and when you call the procedure you need to supply an address (thisRegister) to write to and the data (thisData) to write to that register.
To get information on what registers are available and there address (register number) you need to download the datasheet for the device and it should have the information you need.
1287  Using Arduino / Networking, Protocols, and Devices / Re: How do I connect two slaves to the Arduino Uno? (SPI) on: June 11, 2013, 12:12:10 pm
If you look at the writeRegister procedure in the example I linked to you will see it simplifies (wraps) the writing of data to the SCP1000 as you only need to supply the register to write and the value to write to the register and the procedure deals with correcting the register bit positions, flagging the register is to be written to, not read and also controls the SS pin. Pulling it low to select the device, writing the data then pulling it high after.
//Sends a write command to SCP1000

void writeRegister(byte thisRegister, byte thisValue) {

  // SCP1000 expects the register address in the upper 6 bits
  // of the byte. So shift the bits left by two bits:
  thisRegister = thisRegister << 2;
  // now combine the register address and the command into one byte:
  byte dataToSend = thisRegister | WRITE;

  // take the chip select low to select the device:
  digitalWrite(chipSelectPin, LOW);

  SPI.transfer(dataToSend); //Send register location
  SPI.transfer(thisValue);  //Send value to record into register

  // take the chip select high to de-select:
  digitalWrite(chipSelectPin, HIGH);
1288  Using Arduino / Installation & Troubleshooting / Re: Arduin IDE 1.0.5 - Menu - Tools - Board - long list on: June 11, 2013, 11:54:58 am
Another option (though probably frowned upon) is to comment out all the board types you don't have/use by putting # in front of all entries in a section like this.
# ##############################################################

# Fio

# fio.upload.protocol=arduino
# fio.upload.maximum_size=30720
# fio.upload.speed=57600

# fio.bootloader.low_fuses=0xFF
# fio.bootloader.high_fuses=0xDA
# fio.bootloader.extended_fuses=0x05
# fio.bootloader.path=arduino:atmega
# fio.bootloader.file=ATmegaBOOT_168_atmega328_pro_8MHz.hex
# fio.bootloader.unlock_bits=0x3F
# fio.bootloader.lock_bits=0x0F

1289  Using Arduino / Networking, Protocols, and Devices / Re: How do I connect two slaves to the Arduino Uno? (SPI) on: June 11, 2013, 11:50:42 am
You do not need to use the SS pin for SPI but it needs to remain an output pin else SDI library assumes your arduino is a slave instead of a master. Just assign a separate SS pin to the two devices and write a small wrapper function that you pass the device SS pin, register & data to. Have a look at the SPI example here to get an idea what I mean, though they don't pass SS pin to the writeRegister & readRegister.
1290  Using Arduino / Project Guidance / Re: What hardware can I use to ring a bell? (literally!) on: June 10, 2013, 12:03:38 pm
Maybe a solenoid would do the job.
Pages: 1 ... 84 85 [86] 87 88 ... 179