Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 580
61  Using Arduino / Programming Questions / Re: ARduino as "cell phone - like" USB keayboard on: July 19, 2014, 10:46:04 am
Arduino will be probably Uno (can USB HID).

The UNO can't easily emulate a USB HID device.  The Leonardo can.
62  Topics / Robotics / Re: Problem driving motors with the adafruit motor shield on: July 19, 2014, 10:43:34 am
do you think that the batteries may be the problem?

I can't tell that from the code and you have not mentioned anything about your batteries, motors, or wiring.
63  Topics / Robotics / Re: Problem driving motors with the adafruit motor shield on: July 19, 2014, 07:54:16 am
Code:
    if(SonarVal = 14) {

You probably mean:

Code:
    if(SonarVal == 14) {
64  Topics / Device Hacking / Re: Hack NITGEN fingerprint sensor on: July 19, 2014, 07:49:53 am
USB is not at all the same as Async Serial.  To connect a USB device to the Arduino UNO you need something like a USB Host Shield.
65  Using Arduino / Project Guidance / Re: DC controlled AC Relay on: July 18, 2014, 07:28:28 am
Vendors in the Far East sell any number of relay modules (typically 2, 4, or 8 relays) and some have opto-isolated inputs.  For best isolation you would want to add an internal 5V supply from the AC mains rather than use 5V from the Arduino to power the opto-isolators and relay coils.

Here is one such module from Hong Kong for under $4:

http://www.ebay.com/itm/5V-Two-2-Channel-Relay-Module-With-optocoupler-For-PIC-AVR-DSP-ARM-Arduino-/181026509345?pt=LH_DefaultDomain_0&hash=item2a26055221

The relays have 10A 250V contacts.
66  General Category / General Discussion / Re: 32ch servo controller on: July 18, 2014, 07:13:36 am
I have test connected servo and run the software but servo keep runing one direction verytime i executed

What do you mean by "keep runing one direction"?  A servo will have a physical stop and can only turn about 180 degrees.

Did you read this article? http://www.bajdi.com/torobot-32-channel-servo-controller/
And this article: http://letsmakerobots.com/content/arduino-and-chinese-32-channel-servo-controller
67  Using Arduino / Programming Questions / Re: Arduino UNO and TVB gone - not working on: July 18, 2014, 07:01:45 am
If it is a typical high-power IR LED it needs 100 mA to reach full brightness.  That is way more than the Arduino can supply from a data pin so your range may be very short.  Did you try getting it really close to the TV's receiver?

Typically you would use a small NPN transistor to switch the higher current.
68  Using Arduino / Displays / Re: How to Display a Varible? on: July 18, 2014, 06:49:11 am
What do you mean by "Robot LCD"?  Is Robot a brand name?

This should help in most cases:
http://arduino.cc/en/Reference/LiquidCrystal
69  Using Arduino / Project Guidance / Re: Encoder Counter IC on: July 18, 2014, 06:46:34 am
Looks like the ATtiny85 would work.  You can use it as an I2C slave and poll it from the main processor. That would use only two data pins on the maiin processor (SDA and SCL).   It has Pin Change interrupts for all of the data pins.  You would need to assign a different I2C address to each chip but that wouldn't be too hard. 

To program the ATtiny 84 with the Arduino IDE you need a third-party 'core' (use Google to find one) and an ISP device.  You can use ArduinoISP on an Arduino as the ISP device but it's a bit tricky.  You can get a USBasp from eBay for under $4.  Order early because they can take a few weeks to get here from China.  They come with a 10-pin ICSP connector and you need to adapt that to whatever you have on the ATtiny.  The Arduino uses the 6-Pin version so I recommend using that and getting an adapter (another $4 or so).
70  Using Arduino / Project Guidance / Re: Encoder Counter IC on: July 17, 2014, 06:58:48 pm
One such chip is the LS7366R.  It has an SPI interface so you need a Slave Select pin for each one.  If that is too many pins you can use a shift register to get more outputs.
71  Using Arduino / Installation & Troubleshooting / Re: avrdude: usbdev_open(): did not find any USB device "usb" on: July 17, 2014, 11:50:15 am
You should be using programmer "Arduino as ISP" and set the serial port to the one going to the Arduino.
72  Using Arduino / Installation & Troubleshooting / Re: adding to the library is my problem on: July 17, 2014, 11:48:03 am
http://arduino.cc/en/Guide/Libraries
73  Using Arduino / Programming Questions / Re: Finger print , lcd 16x2 interfacing using LiquidCrystal and Adafruit_Fingerprint on: July 17, 2014, 10:06:43 am
My best guess is that the sketch is running out of memory.  Here is how you check available memory:

http://playground.arduino.cc/code/AvailableMemory

Put calls to print out those values after every line in setup().  If the available memory gets very low (less than a few hundred bytes) you may need a MEGA or other Arduino model with more SRAM.
74  Using Arduino / Programming Questions / Re: Issues with incrementation and decrementation of negative binary numbers on: July 17, 2014, 09:55:47 am
The loops are generating the right numbers so there must be something very wonky about the DAC.  Are you sure the UNI/BIP pin is tied LOW (=Bipolar)?


Starting first loop: 0 to +5
800
801 802 803 804 805 806 807 808 809 80A 80B 80C 80D 80E 80F 810
811 812 813 814 815 816 817 818 819 81A 81B 81C 81D 81E 81F 820
821 822 823 824 825 826 827 828 829 82A 82B 82C 82D 82E 82F 830
831 832 833 834 835 836 837 838 839 83A 83B 83C 83D 83E 83F 840
.
.
.
F51 F52 F53 F54 F55 F56 F57 F58 F59 F5A F5B F5C F5D F5E F5F F60
F61 F62 F63 F64 F65 F66 F67 F68 F69 F6A F6B F6C F6D F6E F6F F70
F71 F72 F73 F74 F75 F76 F77 F78 F79 F7A F7B F7C F7D F7E F7F F80
F81 F82 F83 F84 F85 F86 F87 F88 F89 F8A F8B F8C F8D F8E F8F F90
F91 F92 F93 F94 F95 F96 F97 F98 F99 F9A F9B F9C F9D F9E F9F FA0
FA1 FA2 FA3 FA4 FA5 FA6 FA7 FA8 FA9 FAA FAB FAC FAD FAE FAF FB0
FB1 FB2 FB3 FB4 FB5 FB6 FB7 FB8 FB9 FBA FBB FBC FBD FBE FBF FC0
FC1 FC2 FC3 FC4 FC5 FC6 FC7 FC8 FC9 FCA FCB FCC FCD FCE FCF FD0
FD1 FD2 FD3 FD4 FD5 FD6 FD7 FD8 FD9 FDA FDB FDC FDD FDE FDF FE0
FE1 FE2 FE3 FE4 FE5 FE6 FE7 FE8 FE9 FEA FEB FEC FED FEE FEF FF0
FF1 FF2 FF3 FF4 FF5 FF6 FF7 FF8 FF9 FFA FFB FFC FFD FFE

Starting second loop: +5 to -5
FFF FFE FFD FFC FFB FFA FF9 FF8 FF7 FF6 FF5 FF4 FF3 FF2 FF1 FF0
FEF FEE FED FEC FEB FEA FE9 FE8 FE7 FE6 FE5 FE4 FE3 FE2 FE1 FE0
FDF FDE FDD FDC FDB FDA FD9 FD8 FD7 FD6 FD5 FD4 FD3 FD2 FD1 FD0
FCF FCE FCD FCC FCB FCA FC9 FC8 FC7 FC6 FC5 FC4 FC3 FC2 FC1 FC0
FBF FBE FBD FBC FBB FBA FB9 FB8 FB7 FB6 FB5 FB4 FB3 FB2 FB1 FB0
FAF FAE FAD FAC FAB FAA FA9 FA8 FA7 FA6 FA5 FA4 FA3 FA2 FA1 FA0
F9F F9E F9D F9C F9B F9A F99 F98 F97 F96 F95 F94 F93 F92 F91 F90
F8F F8E F8D F8C F8B F8A F89 F88 F87 F86 F85 F84 F83 F82 F81 F80
F7F F7E F7D F7C F7B F7A F79 F78 F77 F76 F75 F74 F73 F72 F71 F70
F6F F6E F6D F6C F6B F6A F69 F68 F67 F66 F65 F64 F63 F62 F61 F60
F5F F5E F5D F5C F5B F5A F59 F58 F57 F56 F55 F54 F53 F52 F51 F50
F4F F4E F4D F4C F4B F4A F49 F48 F47 F46 F45 F44 F43 F42 F41 F40
F3F F3E F3D F3C F3B F3A F39 F38 F37 F36 F35 F34 F33 F32 F31 F30
.
.
.
12F 12E 12D 12C 12B 12A 129 128 127 126 125 124 123 122 121 120
11F 11E 11D 11C 11B 11A 119 118 117 116 115 114 113 112 111 110
10F 10E 10D 10C 10B 10A 109 108 107 106 105 104 103 102 101 100
FF FE FD FC FB FA F9 F8 F7 F6 F5 F4 F3 F2 F1 F0
EF EE ED EC EB EA E9 E8 E7 E6 E5 E4 E3 E2 E1 E0
DF DE DD DC DB DA D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
CF CE CD CC CB CA C9 C8 C7 C6 C5 C4 C3 C2 C1 C0
BF BE BD BC BB BA B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
AF AE AD AC AB AA A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
9F 9E 9D 9C 9B 9A 99 98 97 96 95 94 93 92 91 90
8F 8E 8D 8C 8B 8A 89 88 87 86 85 84 83 82 81 80
7F 7E 7D 7C 7B 7A 79 78 77 76 75 74 73 72 71 70
6F 6E 6D 6C 6B 6A 69 68 67 66 65 64 63 62 61 60
5F 5E 5D 5C 5B 5A 59 58 57 56 55 54 53 52 51 50
4F 4E 4D 4C 4B 4A 49 48 47 46 45 44 43 42 41 40
3F 3E 3D 3C 3B 3A 39 38 37 36 35 34 33 32 31 30
2F 2E 2D 2C 2B 2A 29 28 27 26 25 24 23 22 21 20
1F 1E 1D 1C 1B 1A 19 18 17 16 15 14 13 12 11 10
F E D C B A 9 8 7 6 5 4 3 2 1

Starting third loop: -5 to 0
0
1 2 3 4 5 6 7 8 9 A B C D E F 10
11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20
21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30
31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40
41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50
51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60
61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70
71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F 80
81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8F 90
91 92 93 94 95 96 97 98 99 9A 9B 9C 9D 9E 9F A0
A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF B0
B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF C0
C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF D0
.
.
.
771 772 773 774 775 776 777 778 779 77A 77B 77C 77D 77E 77F 780
781 782 783 784 785 786 787 788 789 78A 78B 78C 78D 78E 78F 790
791 792 793 794 795 796 797 798 799 79A 79B 79C 79D 79E 79F 7A0
7A1 7A2 7A3 7A4 7A5 7A6 7A7 7A8 7A9 7AA 7AB 7AC 7AD 7AE 7AF 7B0
7B1 7B2 7B3 7B4 7B5 7B6 7B7 7B8 7B9 7BA 7BB 7BC 7BD 7BE 7BF 7C0
7C1 7C2 7C3 7C4 7C5 7C6 7C7 7C8 7C9 7CA 7CB 7CC 7CD 7CE 7CF 7D0
7D1 7D2 7D3 7D4 7D5 7D6 7D7 7D8 7D9 7DA 7DB 7DC 7DD 7DE 7DF 7E0
7E1 7E2 7E3 7E4 7E5 7E6 7E7 7E8 7E9 7EA 7EB 7EC 7ED 7EE 7EF 7F0
7F1 7F2 7F3 7F4 7F5 7F6 7F7 7F8 7F9 7FA 7FB 7FC 7FD 7FE 7FF
75  Using Arduino / Programming Questions / Re: Issues with incrementation and decrementation of negative binary numbers on: July 17, 2014, 09:33:44 am
But the issue is still the same : at first it's fine, the voltage goes from 0 to 5V, then decreases from 5V to 0V, but then jumps to 5V again, decreases to -5V and increases to 5V. Here is my code.

I have no clue how that is happening. smiley-sad

I think it is time to put in some debug prints to see if it is the code or the DAC that is going wonky.  Fortunately that is something I can try on my Arduino here.
Pages: 1 ... 3 4 [5] 6 7 ... 580