Show Posts
Pages: [1] 2 3 ... 848
1  Development / Other Software Development / Re: DST support for Time library? on: Today at 02:56:58 pm

check - http://forum.arduino.cc/index.php/topic,96891.0.html -
2  Using Arduino / Sensors / Re: Sensiron SHT1x issues on: Today at 02:52:10 pm
Quote
So do I need to pull up the data pins?
you get definitely better signals if you do...
3  Using Arduino / Networking, Protocols, and Devices / Re: I2C cannot detect on: Today at 02:50:11 pm
should not give any problems if you add a pull up resistor 4K7

one of the best backgrounders about i2c - http://www.gammon.com.au/forum/?id=10896 -
4  International / Nederlands / Re: Gekozen toon wijkt af: 880hz/880,7hz maar 881hz is 887,2hz? on: Today at 12:16:24 pm
waarschijnlijk is het de beperkte nauwkeurigheid van de code.

De eerste stap is om je eigen code te posten, evt gebruikte libraries - of gebruik je de standaard tone functie?
5  Using Arduino / Sensors / Re: Sensiron SHT1x issues on: Today at 11:59:41 am
does the second lib even check the CRC?
6  Using Arduino / Programming Questions / Re: the output pins are not effected by serial reading on: Today at 11:51:04 am
Code:
[code]note that angle is a char so if you type 30   angle will be first 3 and  thereafter it will be zero.

you must read in multiple characters, convert that into an integer and then you can do the motor math.

[code]
void loop()
{
 while (Serial.available())
  {
   char angle = Serial.read();
      
      Serial.println(angle);  // <<<<<<<<<<<<<<<<<<<<<< CHANGE THIS LINE TO SEE
      
  if(angle >= 0 && angle <= 30)
  
   {
    // write output for 'M1'
    analogWrite(pwm_motor1, LOW);
    digitalWrite(dir1,LOW);
    // write output for 'M2'
    analogWrite(pwm_motor2, LOW);
    digitalWrite(dir2,LOW);
   }
else if(angle > 30 && angle <= 90)
{
  analogWrite(pwm_motor1, HIGH);
    digitalWrite(dir1,LOW);
    // write output for 'M2'
    analogWrite(pwm_motor2, HIGH);
    digitalWrite(dir2,LOW);
   }
}
}
PS,
using CTRL-T in your IDE before posting, saving or uploading makes your code more readable![/code][/code]
7  Using Arduino / Installation & Troubleshooting / Re: Serial.print and Serial.println on Windows 7 broken on: Today at 11:27:32 am
Step back to 1.04 if 1.05 doesn't work for you.

Also check the (USB-COMPORT) driver , reinstall it can sometimes help...
8  Using Arduino / Networking, Protocols, and Devices / Re: what is the best protocol to connect more than 512 devices to an arduino?? on: Today at 11:22:27 am

why not using wireless? No problem with the load!   
XBEE to the rescue !   - 16 (or even 64) bit addressing mode should do it

Question is which bandwidth do you need?
How often the positions change per second per steppenmoter
9  Using Arduino / Networking, Protocols, and Devices / Re: I2C cannot detect on: Today at 10:39:42 am
do you have pull up resistors?
for I2C you need typically 4K7 or with longer wires 2K2  (or lower) resistor between the SCL/DTA and +5V
Think that will also be true for softI2C
10  Using Arduino / Networking, Protocols, and Devices / Re: very impressed with RFM69HW module for wireless on: Today at 03:40:04 am

how much in 4 houses away?

living in a flat or in a rural area we are talking quite different distances  smiley-wink
11  Using Arduino / Networking, Protocols, and Devices / Re: I2C bus Scan time on: Today at 03:38:41 am
You can try other I2C scanners see if they have the same issue - http://playground.arduino.cc/Main/I2cScanner -
12  Development / Other Software Development / Re: MultiSpeed I2C Scanner - 50,100,200,400 KHz. on: Today at 03:31:42 am
Short testrun on a MEGA r3 today => worked smooth.
13  Using Arduino / Networking, Protocols, and Devices / Re: I2C bus Scan time on: Today at 03:30:10 am
I digged up an MEGA (also R3) and ran my I2C scanner (nothing connected) and it worked smooth / did not block.

Code:
Arduino I2C Scanner - 0.1.03

s = single scan
c = continuous scan - 1 second delay
q = quit continuous scan
d = toggle latency delay between successful tests.
p = toggle printAll - printFound.
h = toggle header - noHeader.
? = help - this page

TIME DEC HEX 50 100 200 250 400 500 800 [KHz]
------------------------------------------------------------------------------------------------
2689 0 0x0 . . . . . . .
2691 1 0x1 . . . . . . .
2693 2 0x2 . . . . . . .
2695 3 0x3 . . . . . . .
2698 4 0x4 . . . . . . .
2700 5 0x5 . . . . . . .
2702 6 0x6 . . . . . . .
2704 7 0x7 . . . . . . .
2707 8 0x8 . . . . . . .
2709 9 0x9 . . . . . . .
2711 10 0xA . . . . . . .
2713 11 0xB . . . . . . .
2716 12 0xC . . . . . . .
2718 13 0xD . . . . . . .
2720 14 0xE . . . . . . .
2723 15 0xF . . . . . . .
2725 16 0x10 . . . . . . .
2727 17 0x11 . . . . . . .
2731 18 0x12 . . . . . . .
2733 19 0x13 . . . . . . .
2736 20 0x14 . . . . . . .
2738 21 0x15 . . . . . . .
2740 22 0x16 . . . . . . .
2743 23 0x17 . . . . . . .
2745 24 0x18 . . . . . . .
2748 25 0x19 . . . . . . .
2750 26 0x1A . . . . . . .
2752 27 0x1B . . . . . . .
2755 28 0x1C . . . . . . .
2757 29 0x1D . . . . . . .
2760 30 0x1E . . . . . . .
2762 31 0x1F . . . . . . .
2764 32 0x20 . . . . . . .
2767 33 0x21 . . . . . . .
2769 34 0x22 . . . . . . .
2772 35 0x23 . . . . . . .
2775 36 0x24 . . . . . . .
2778 37 0x25 . . . . . . .
2780 38 0x26 . . . . . . .
2782 39 0x27 . . . . . . .
2785 40 0x28 . . . . . . .
2787 41 0x29 . . . . . . .
2790 42 0x2A . . . . . . .
2792 43 0x2B . . . . . . .
2794 44 0x2C . . . . . . .
2797 45 0x2D . . . . . . .
2799 46 0x2E . . . . . . .
2802 47 0x2F . . . . . . .
2804 48 0x30 . . . . . . .
2806 49 0x31 . . . . . . .
2809 50 0x32 . . . . . . .
2811 51 0x33 . . . . . . .
2814 52 0x34 . . . . . . .
2817 53 0x35 . . . . . . .
2819 54 0x36 . . . . . . .
2822 55 0x37 . . . . . . .
2824 56 0x38 . . . . . . .
2827 57 0x39 . . . . . . .
2829 58 0x3A . . . . . . .
2831 59 0x3B . . . . . . .
2834 60 0x3C . . . . . . .
2836 61 0x3D . . . . . . .
2839 62 0x3E . . . . . . .
2841 63 0x3F . . . . . . .
2843 64 0x40 . . . . . . .
2846 65 0x41 . . . . . . .
2848 66 0x42 . . . . . . .
2851 67 0x43 . . . . . . .
2853 68 0x44 . . . . . . .
2856 69 0x45 . . . . . . .
2859 70 0x46 . . . . . . .
2861 71 0x47 . . . . . . .
2864 72 0x48 . . . . . . .
2866 73 0x49 . . . . . . .
2869 74 0x4A . . . . . . .
2871 75 0x4B . . . . . . .
2873 76 0x4C . . . . . . .
2876 77 0x4D . . . . . . .
2878 78 0x4E . . . . . . .
2881 79 0x4F . . . . . . .
2883 80 0x50 . . . . . . .
2885 81 0x51 . . . . . . .
2888 82 0x52 . . . . . . .
2890 83 0x53 . . . . . . .
2893 84 0x54 . . . . . . .
2895 85 0x55 . . . . . . .
2897 86 0x56 . . . . . . .
2900 87 0x57 . . . . . . .
2903 88 0x58 . . . . . . .
2906 89 0x59 . . . . . . .
2908 90 0x5A . . . . . . .
2910 91 0x5B . . . . . . .
2913 92 0x5C . . . . . . .
2915 93 0x5D . . . . . . .
2918 94 0x5E . . . . . . .
2920 95 0x5F . . . . . . .
2923 96 0x60 . . . . . . .
2925 97 0x61 . . . . . . .
2927 98 0x62 . . . . . . .
2930 99 0x63 . . . . . . .
2932 100 0x64 . . . . . . .
2935 101 0x65 . . . . . . .
2937 102 0x66 . . . . . . .
2940 103 0x67 . . . . . . .
2942 104 0x68 . . . . . . .
2946 105 0x69 . . . . . . .
2948 106 0x6A . . . . . . .
2951 107 0x6B . . . . . . .
2953 108 0x6C . . . . . . .
2956 109 0x6D . . . . . . .
2958 110 0x6E . . . . . . .
2961 111 0x6F . . . . . . .
2963 112 0x70 . . . . . . .
2966 113 0x71 . . . . . . .
2968 114 0x72 . . . . . . .
2971 115 0x73 . . . . . . .
2973 116 0x74 . . . . . . .
2975 117 0x75 . . . . . . .
2978 118 0x76 . . . . . . .
2980 119 0x77 . . . . . . .
2983 120 0x78 . . . . . . .
2985 121 0x79 . . . . . . .
2989 122 0x7A . . . . . . .
2991 123 0x7B . . . . . . .
2994 124 0x7C . . . . . . .
2996 125 0x7D . . . . . . .
2999 126 0x7E . . . . . . .
3001 127 0x7F . . . . . . .

0 devices found in 323 milliseconds.

Arduino I2C Scanner - 0.1.03

s = single scan
c = continuous scan - 1 second delay
q = quit continuous scan
d = toggle latency delay between successful tests.
p = toggle printAll - printFound.
h = toggle header - noHeader.
? = help - this page

14  Using Arduino / Displays / Re: A fast PCD8544 library (Nokia 5110) on: Today at 03:18:34 am
Thanks for the invert code!

tip: don't check every single pixel if OK that adds up!
Do the check on a higher level.

Code:
void PCD8544_SPI_FB::invertPixel(uint8_t x, uint8_t y)
{
  uint8_t bank = y / 8;
  uint8_t bitMask = 1 << (y % 8);
  uint8_t &byte = this->m_Buffer[(PCD8544_X_PIXELS * bank) + x];
  byte ^= bitMask;
}

void PCD8544_SPI_FB::invertArea(uint8_t x, uint8_t y, uint8_t width, uint8_t height)
{
  uint8_t myx, myy;
  for (myx = x; myx < (x+width); myx++)
  {
    if (myx >= PCD8544_X_PIXELS ) break;
    for (myy = y; myy < (y+height); myy++)
    {
      if (myy >= PCD8544_Y_PIXELS) break;
      this->invertPixel(myx,myy);
    }
  }
}


it would be a serious speed up when it would be possible to invert 8 pixels in a row

Code:
void PCD8544_SPI_FB::invertEightPixels(uint8_t x, uint8_t y)
{
  uint8_t bank = y / 8;
  uint8_t &byte = this->m_Buffer[(PCD8544_X_PIXELS * bank) + x];
  byte ^= 255;
}
you would need to make invertArea "aware" of the byte boundaries in the inner loop.
15  Using Arduino / Networking, Protocols, and Devices / Re: I2C cannot detect on: April 19, 2014, 03:48:28 pm
one small issue, I2C device addresses only go up to 127
so a loop to scan up to 255 is wrong , but at the same time it should give some output in the lower numbers...

no experience with softI2Cmaster. a quick scan on github. All functions seem to be written in assembler in the .h so no .cpp files used. (doesn't solve your problem, I know)
Pages: [1] 2 3 ... 848