Kategori arşivi: Genel

Engelden Kaçan Robot (nano)

Kodlar

 

const int IN1=5;
const int IN2 = 6;
const int IN3 = 9;
const int IN4 = 10;
const int trig=12;
const int echo=11;

long sure;
int uzaklik;

int hiz=100;

void setup(){
pinMode(IN1,OUTPUT);
pinMode(IN2,OUTPUT);
pinMode(IN3,OUTPUT);
pinMode(IN4,OUTPUT);
pinMode(trig,OUTPUT);
pinMode(echo,INPUT);
}

void loop(){
digitalWrite(trig,0);
delayMicroseconds(10);
digitalWrite(trig,1);
delayMicroseconds(10);

sure=pulseIn(echo,1);
uzaklik=(0.0343*sure)/2;

//ileri
analogWrite(IN1,hiz);
analogWrite(IN2,0);
analogWrite(IN3,hiz);
analogWrite(IN4,0);

if(uzaklik<40){
//sol
analogWrite(IN1,0);
analogWrite(IN2,hiz);
analogWrite(IN3,hiz);
analogWrite(IN4,0);
}
}

ew

A Summary of Rules and Guidelines for Waves

From a theoretical standpoint, we must be careful not to confuse Elliott waves with their measures, which are as a thermometer is to heat. A thermometer is not designed to gauge rapid short-term fluctuations in air temperature and neither is an index of 30 stocks constructed so as to be able to record every short-term fluctuation in social mood. While we fully believe that the listed rules govern Elliott waves as a collective mental phenomenon, recordings of actions that Elliott waves induce — such as buying and selling certain lists of stocks — may not perfectly reflect those waves. Therefore recordings of such actions could deviate from a perfect expression of the rules simply because of the imperfection of the chosen gauge. That being said, we have found that the Dow Jones Industrial Average has followed Elliott’s rules impeccably at Minor degree and above and almost always at lesser degrees as well. Below is a summary of the rules and known guidelines (excepting Fibonacci relationships) for the five main wave patterns, variations and combinations.

Motive Waves

Impulse

Rules

  • An impulse always subdivides into five waves
  • Wave 1 always subdivides into an impulse or (rarely) a diagonal.
  • Wave 3 always subdivides into an impulse
  • Wave 5 always subdivides into an impulse or a diagonal.
  • Wave 2 always subdivides into a zigzag, flat or combination.
  • Wave 4 always subdivides into a zigzag, flat, triangle or combination.
  • Wave 2 never moves beyond the start of wave 1.
  • Wave 3 always moves beyond the end of wave 1.
  • Wave 3 is never the shortest wave.
  • Wave 4 never moves beyond the end of wave 1.
  • Never are waves 1, 3 and 5 all extended.

Guidelines

  • Wave 4 will almost always be a different corrective pattern than wave 2.
  • Wave 2 is usually a zigzag or zigzag combination.
  • Wave 4 is usually a flat, triangle or flat combination.
  • Sometimes wave 5 does not move beyond the end of wave 3 (in which case it is called a truncation).
  • Wave 5 often ends when meeting or slightly exceeding a line drawn from the end of wave 3 that is parallel to the line connecting the ends of waves 2 and 4, on either arithmetic or semilog scale.
  • The center of wave 3 almost always has the steepest slope of any equal period within the parent impulse except that sometimes an early portion of wave 1 (the “kickoff”) will be steeper.
  • Wave 1, 3 or 5 is usually extended. (An extension appears “stretched” because its corrective waves are small compared to its impulse waves. It is substantially longer, and contains larger subdivisions, than the non-extended waves).
  • Often, the extended subwave is the same number (1, 3 or 5) as the parent wave.
  • Rarely do two subwaves extend, although it is typical for waves 3 and 5 both to extend when they are of Cycle or Supercycle degree and within a fifth wave of one degree higher.
  • Wave 1 is the least commonly extended wave.
  • When wave 3 is extended, waves 1 and 5 tend to have gains related by equality or the Fibonacci ratio.
  • When wave 5 is extended, it is often in Fibonacci proportion to the net travel of waves 1 through 3.
  • When wave 5 is extended, it is often in Fibonacci proportion to the net travel of waves 1 through 3.
  • Wave 4 typically ends when it is within the price range of subwave four of 3.
  • Wave 4 often subdivides the entire impulse into Fibonacci proportion in time and/or price.

Diagonal

Rules

  • A diagonal always subdivides into five waves.
  • An ending diagonal always appears as wave 5 of an impulse or wave C of a zigzag or flat.
  • A leading diagonal always appears as wave 1 of an impulse or wave A of a zigzag.
  • Waves 1, 2, 3, 4 and 5 of an ending diagonal, and waves 2 and 4 of a leading diagonal, always subdivide into zigzags.
  • Wave 2 never goes beyond the start of wave 1.
  • Wave 3 always goes beyond the end of wave 1.
  • Wave 4 never moves beyond the end of wave 2.
  • Wave 4 always ends within the price territory of wave 1.*
  • Going forward in time, a line connecting the ends of waves 2 and 4 converges towards (in the contracting variety) or diverges from (in the expanding variety) a line connecting the ends of waves 1 and 3.
  • In a leading diagonal, wave 5 always ends beyond the end of wave 3.
  • In the contracting variety, wave 3 is always shorter than wave 1, wave 4 is always shorter than wave 2, and wave 5 is always shorter than wave 3.
  • In the expanding variety, wave 3 is always longer than wave 1, wave 4 is always longer than wave 2, and wave 5 is always longer than wave 3.
  • In the expanding variety, wave 5 always ends beyond the end of wave 3.

Guidelines

  • Waves 2 and 4 each usually retrace .66 to .81 of the preceding wave.
  • Waves 1, 3 and 5 of a leading diagonal usually subdivide into zigzags but sometimes appear to be impulses.
  • Within an impulse, if wave 1 is a diagonal, wave 3 is likely to be extended.
  • Within an impulse, wave 5 is unlikely to be a diagonal if wave 3 is not extended.
  • In the contracting variety, wave 5 usually ends beyond the end of wave 3. (Failure to do so is called a truncation.)
  • In the contracting variety, wave 5 usually ends at or slightly beyond a line that connects the ends of waves 1 and 3. (Ending beyond that line is called a throw-over.)
  • In the expanding variety, wave 5 usually ends slightly before reaching a line that connects the ends of waves 1 and 3.

* We have found one diagonal in the Dow in which wave four did not reach the price territory of wave one. See Figure 1-18.

Corrective Waves

Zigzag

Rules

  • A zigzag always subdivides into three waves.
  • Wave A always subdivides into an impulse or leading diagonal.
  • Wave C always subdivides into an impulse or diagonal.
  • Wave B always subdivides into a zigzag, flat, triangle or combination thereof.
  • Wave B never moves beyond the start of wave A.

Guidelines

  • Wave A almost always subdivides into an impulse.
  • Wave C almost always subdivides into an impulse.
  • Wave C is often about the same length as wave A.
  • Wave C almost always ends beyond the end of wave A.
  • Wave B typically retraces 38 to 79 percent of wave A.
  • If wave B is a running triangle, it will typically retrace between 10 and 40 percent of wave A.
  • If wave B is a zigzag, it will typically retrace 50 to 79 percent of wave A.
  • If wave B is a triangle, it will typically retrace 38 to 50 percent of wave A.
  • A line connecting the ends of waves A and C is often parallel to a line connecting the end of wave B and the start of wave A. (Forecasting guideline: Wave C often ends upon reaching a line drawn from the end of wave A that is parallel to a line connecting the start of wave A and the end of wave B.)

Flat

Rules

  • A flat always subdivides into three waves.
  • Wave A is never a triangle.
  • Wave C is always an impulse or a diagonal.
  • Wave B always retraces at least 90 percent of wave A.

Guidelines

  • Wave B usually retraces between 100 and 138 percent of wave A.
  • Wave C is usually between 100 and 165 percent as long as wave A.
  • Wave C usually ends beyond the end of wave A.

Notes

  • When wave B is more than 105 percent as long as wave A and wave C ends beyond the end of wave A, the entire formation is called an expanded flat.
  • When wave B is more than 100 percent as long as wave A and wave C does not end beyond the end of wave A, the entire formation is called a running flat.

Contracting Triangle

Rules

  • A triangle always subdivides into five waves.
  • At least four waves among waves A, B, C, D and E each subdivide into a zigzag or zigzag combination.
  • Wave C never moves beyond the end of wave A, wave D never moves beyond the end of wave B, and wave E never moves beyond the end of wave C. The result is that going forward in time, a line connecting the ends of waves B and D converges with a line connecting the ends of waves A and C.
  • A triangle never has more than one complex subwave, in which case it is always a zigzag combination or a triangle.

Guidelines

  • Usually, wave C subdivides into a zigzag combination that is longer lasting and contains deeper percentage retracements than each of the other subwaves.
  • Sometimes, wave D subdivides into a zigzag combination that is longer lasting and contains deeper percentage retracements than each of the other subwaves.
  • Sometimes one of the waves, usually wave C, D or E, subdivides into a contracting or barrier triangle. Often the effect is as if the entire triangle consisted of nine zigzags.
  • About 60 percent of the time, wave B does not end beyond the start of wave A. When it does, the triangle is called a running triangle.

Barrier Triangle

  • A barrier triangle has the same characteristics as a contracting triangle except that waves B and D end at essentially the same level. We have yet to observe a 9-wave barrier triangle, implying that this form may not extend.
  • When wave 5 follows a triangle, it is typically either a brief, rapid movement or an exceptionally long extension.

Expanding Triangle

Rules

Most rules are the same as for contracting triangles, with these differences:

  • Wave C, D and E each moves beyond the end of the preceding same-directional subwave. (The result is that going forward in time, a line connecting the ends of waves B and D diverges from a line connecting the ends of waves A and C.)
  • Subwaves B, C and D each retrace at least 100 percent but no more than 150 percent of the preceding subwave.

Guidelines

  • Most guidelines are the same, with these differences:
  • Subwaves B, C and D usually retrace 105 to 125 percent of the preceding subwave.
  • No subwave has yet been observed to subdivide into a triangle.

Combinations

Rules

  • Combinations comprise two (or three) corrective patterns separated by one (or two) corrective pattern(s) in the opposite direction, labeled X. (The first corrective pattern is labeled W, the second Y, and the third, if there is one, Z.)
  • A zigzag combination comprises two or three zigzags (in which case it is called a double or triple zigzag).
  • A “double three” flat combination comprises (in order) a zigzag and a flat, a flat and a zigzag, a flat and a flat, a zigzag and a triangle or a flat and a triangle.
  • A rare “triple three” flat combination comprises three flats.
  • Double and triple zigzags take the place of zigzags, and double and triple threes take the place of flats and triangles.
  • An expanding triangle has yet to be observed as a component of a combination.

Guidelines

  • When a zigzag or flat appears too small to be the entire wave with respect to the preceding wave (or, if it is to be wave 4, the preceding wave 2), a combination is likely.

Arduino el ile uzaktan kontrollü araba yapımı (Deney bordu)

Verici modülde kullanılan malzemeler:

  • MPU6050
  • NRF24L01
  • ARDUINO NANO
  • 9V PİL
  • MINI BOARD

 

verici kodu

kutuphaneler indir.

Alıcı modülde kullanılan malzemeler:

  • NRF24L01
  • L298 MOTOR SÜRÜCÜ
  • 3S LIPO PİL
  • ARDUINO NANO
  • MINI BOARD

Araç için:

  • 6V 250 Rpm Motor ve Tekerlek Seti
  • Araç gövdesi
  • Sarhoş teker

veya hepsi bir arada 2WD Robot Araba Kit

veya aşağıdan 3B yazıcı için .stl dosyasını indirebilirsiniz.

Alıcı kodu

aracGovde.stl dosyası

L298N MOTOR SÜRÜCÜ KULLANIMI



1. DC motor 1 “+” veya stepper motor A+
2. DC motor 1 “-” veya stepper motor A-
3. 12V jumper –Besleme voltajı 12V dan daha fazla ise bu jumper ı kaldırın. Regülatör devre dışı kalacaktır. Bu sebeple harici olarak 5V besleme yapmanız gerekir.
4. Motor Beslemesini buradan verin. Maksimum 35V DC. 12V dan fazla verirseniz 3 teki jumper ı kaldırın.
5. GND
6. 12V jumper takılı ise 5V çıkış alabilirsiniz. Arduino ve diğer devreleri besleyebilirsiniz.
7. Step motor kullanırken burayı kullanmayın. PWM çıkışı ile DC motorda hız kontrolü yapabilirsiniz.
8. IN1 1.motor yön belirleme pinleri / step motor komutasyon pinleri
9. IN2 1.motor yön belirleme pinleri / step motor komutasyon pinleri
10. IN3 2.motor yön belirleme pinleri / step motor komutasyon pinleri
11. IN4 2.motor yön belirleme pinleri / step motor komutasyon pinleri
12. Step motor kullanırken burayı kullanmayın. PWM çıkışı ile 2. DC motorda hız kontrolü yapabilirsiniz.
13. DC motor 2 “+” veya stepper motor B+
14. DC motor 2 “-” veya stepper motor B-