Recent Posts

Pages: [1] 2 3 ... 10
1
A regular AND gate does not have a high-impedance option - its ouputs are either HIGH or LOW.

Logic gates are very fast - much faster than an Atmega 328.

...R
3
This Python - Arduino demo may be helpful.

It is important for the RPi program to open the serial port, wait for the Arduino to reset and then keep the port open until it is completely finished using the Arduino.

...R
4
Project Guidance / have a code ...i need shematic...
Last post by batuning - Today at 12:07 pm
hi
i have a arduino code .. but i dont have schematic and wearing .
who can find schematic
and say ,who wiring in real ...
its arduino uno .
Code: [Select]

const int gear1 = 7;
const int gear2 = 6;
const int gear3 = 5;
const int gear4 = 4;
const int gear5 = 3;
const int gearR = 8;

int leftPin = A0;
int rightPin = A0;
int reversePin = A0;
int neutralPin = A0;
int left_tap = 0;
int right_tap = 0;
int reverse_tap = 0;
int neutral_tap = 0;

int gear = 0;

void setup() {
// set the digital pin as output:
pinMode(gear1, OUTPUT);
pinMode(gear2, OUTPUT);
pinMode(gear3, OUTPUT);
pinMode(gear4, OUTPUT);
pinMode(gear5, OUTPUT);
pinMode(gearR, OUTPUT);

digitalWrite(gear1, LOW);
digitalWrite(gear2, LOW);
digitalWrite(gear3, LOW);
digitalWrite(gear4, LOW);
digitalWrite(gear5, LOW);
digitalWrite(gearR, LOW);
}


void loop()
{
left_tap = analogRead(leftPin);
right_tap = analogRead(rightPin);
reverse_tap = analogRead(reversePin);
neutral_tap = analogRead(neutralPin);

if (left_tap > 500)
{

switch (gear) {
case -1:
//do nothing
break;

case 0:
//do nothing
break;

case 1:
//do nothing
break;

case 2:
//downshift to gear 1
digitalWrite(gear2, LOW);
delay(100);
digitalWrite(gear1, HIGH);
gear = 1;
break;

case 3:
//downshift to gear 2
digitalWrite(gear3, LOW);
delay(100);
digitalWrite(gear2, HIGH);
gear = 2;
break;

case 4:
//downshift to gear 3
digitalWrite(gear4, LOW);
delay(100);
digitalWrite(gear3, HIGH);
gear = 3;
break;

case 5:
//downshift to gear 4
digitalWrite(gear5, LOW);
delay(100);
digitalWrite(gear4, HIGH);
gear = 4;
break;

}
}


if (right_tap > 500)
{

switch (gear) {
case -1:
//upshift to gear 0
digitalWrite(gearR, LOW);
delay(100);
gear = 0;
break;

case 0:
//upshift to gear 1
digitalWrite(gear1, HIGH);
gear = 1;
break;

case 1:
//upshift to gear 2
digitalWrite(gear1, LOW);
delay(100);
digitalWrite(gear2, HIGH);
gear = 2;
break;

case 2:
//upshift to gear 3
digitalWrite(gear2, LOW);
delay(100);
digitalWrite(gear3, HIGH);
gear = 3;
break;

case 3:
//upshift to gear 4
digitalWrite(gear3, LOW);
delay(100);
digitalWrite(gear4, HIGH);
gear = 4;
break;

case 4:
//upshift to gear 5
digitalWrite(gear4, LOW);
delay(100);
digitalWrite(gear5, HIGH);
gear = 1;
break;

case 5:
//do nothing
break;

}
}

if (reverse_tap > 500)
{

switch (gear) {
case -1:
//do nothing
break;

case 0:
//shift into reverse
digitalWrite(gearR, HIGH);
gear = -1;
break;

case 1:
//do nothing
break;
case 2:
//do nothing
break;
case 3:
//do nothing
break;
case 4:
//do nothing
break;
case 5:
//do nothing
break;

}

}




if (neutral_tap > 500)
{

digitalWrite(gear1, LOW);
digitalWrite(gear2, LOW);
digitalWrite(gear3, LOW);
digitalWrite(gear4, LOW);
digitalWrite(gear5, LOW);
digitalWrite(gearR, LOW);
gear = 0;

}


}

5
Take a look at this

Personally, I always use 4.7k ohm and 1 uF to 10 uF (depending on what I have laying around)
Thats what I ment as well but I not an electrician so...If I apply 30V and 15A to the capacitor and resistor...are they going to burnout(they are at the same circuit...I think...)....that is the problem...I don't know how to choose them and what should I look for....except "4.7k ohm and 1 uF to 10 uF"
6
Project Guidance / Re: switch or nested if statem...
Last post by Robin2 - Today at 12:04 pm
There is a fundamental difference beween SWITCH/CASE and IF.  With SWITCH/CASE the values must be known at compile time. With IF they can vary while the program runs.

...R
7
Displays / Re: MCUFRIEND_kbv Library for ...
Last post by ardumino24 - Today at 12:03 pm
Hi, Please help me :(
I cant find any Library, that work with my Display correctly.
Display      3.5 inch with 480x320
Controller   ILI 9488
Board         Arduino Uno REV3

The Glue demo sketch work, but the TouchScreen_Calibr_kbv still not work, No touch and the text is mirrored:( (See pic).


i bought the Display here:
 http://www.aliexpress.com/item/1pcs-3-97-inch-LCD-Display-Module-TFT-LCD-screen-for-Arduino-UNO-R3-Board-ili9488/32699955292.html?spm=2114.01010208.3.2.2S3e07&ws_ab_test=searchweb201556_0,searchweb201602_3_10057_10056_10055_10037_10049_10033_10059_10058_10032_10017_405_404_10060_10061_10062_412,searchweb201603_6&btsid=a3d3bf29-6b79-4257-832f-75fa98f331a7




LCD_ID_Reader sketch :
Code: [Select]
Read Registers on MCUFRIEND UNO shield
controllers either read as single 16-bit
e.g. the ID is at readReg(0)
or as a sequence of 8-bit values
in special locations (first is dummy)

reg(0x0000) C0 C0 ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 00 00 80 00 Manufacturer ID
reg(0x0009) 00 00 61 00 00 Status Register
reg(0x000A) 00 08 Get Powsr Mode
reg(0x000C) 00 06 Get Pixel Format
reg(0x0061) E1 E1 RDID1 HX8347-G
reg(0x0062) E2 E2 RDID2 HX8347-G
reg(0x0063) E3 E3 RDID3 HX8347-G
reg(0x0064) E4 E4 RDID1 HX8347-A
reg(0x0065) E5 E5 RDID2 HX8347-A
reg(0x0066) E6 E6 RDID3 HX8347-A
reg(0x0067) E7 E7 RDID Himax HX8347-A
reg(0x0070) 00 BF Panel Himax HX8347-A
reg(0x00A1) 00 00 00 00 00 RD_DDB SSD1963
reg(0x00B0) F0 F0 RGB Interface Signal Control
reg(0x00B4) F4 F4 Inversion Control
reg(0x00B6) F6 F6 F6 F6 F6 Display Control
reg(0x00B7) F7 F7 Entry Mode Set
reg(0x00BF) FF FF FF FF FF FF ILI9481, HX8357-B
reg(0x00C0) C0 C0 C0 C0 C0 C0 C0 C0 C0 Panel Control
reg(0x00C8) C8 C8 C8 C8 C8 C8 C8 C8 C8 C8 C8 C8 C8 GAMMA
reg(0x00CC) CC CC Panel Control
reg(0x00D0) D0 D0 D0 Power Control
reg(0x00D2) D2 D2 D2 D2 D2 NVM Read
reg(0x00D3) D3 D3 D3 D3 ILI9341, ILI9488
reg(0x00DA) 00 00 RDID1
reg(0x00DB) 00 80 RDID2
reg(0x00DC) 00 00 RDID3
reg(0x00E0) E0 E0 E0 E0 E0 E0 E0 E0 E0 E0 E0 E0 E0 E0 E0 E0 GAMMA-P
reg(0x00E1) E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 E1 GAMMA-N
reg(0x00EF) EF EF EF EF EF EF ILI9327
reg(0x00F2) F2 F2 F2 F2 F2 F2 F2 F2 F2 F2 F2 F2 Adjust Control 2
reg(0x00F6) F6 F6 F6 F6 Interface Control


I don´t know what is wrong.

Thank you!
8
Sensors / Re: FSR which can withstand ~2...
Last post by TomGeorge - Today at 12:02 pm
Hi,
If you are looking to 7000lb, over 3000kg, you need to  google       loadcell
not force sensor.

Tom... :)
9
OK the schematics is.....ugly  :)  as I said there is no schematic of the regulator so I had to do it with some photoshop bad skills and fritzing....
10
When you press the reset button does the L led blink rapidly several times?
Pages: [1] 2 3 ... 10

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy