'전체 글'에 해당되는 글 781건

  1. 2016.04.05 최군
  2. 2016.04.04 ADC
  3. 2016.04.03 옴사

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.



naver

[최군 수익]



2016년 4월 4일 Daum 브라우저의 검색순위에 "최군"이 잠시 올라있었다.

최군이 올해 2016년에 군복무를 더이상 미룰 수 없는 시기인걸 아는 팬들의 폭발적인 검색으로 인해

잠시 순위권에 올라있었는듯하다.

순식간에 순위 밖으로 나갔는데 확실친 않지만 최군 측에서 순위 조작을 하지 않았을까 의심된다.



많은 팬들이 병무청에 문의한듯한데

확실한 사실은 그가 주장하고 있는 정신병력이 입증되지 않아서 올해는 현역으로 가야한다는 것이다.

그게 아니라면 양심적 병역 거부자들처럼 교도소 행을 선택하는 방법 말고는 없다.


AfricaTV로 한창 주가를 올리고 있는 최군 TV의 수익으로 추정되는건

별풍선, YouTube, 연예인들 활동을 홍보해주고 받는 서포트 등이 있다.

군복무를 더이상 미룰수 없는 이 시점에서

법원으로부터 정신병력을 인정받았다는 여론을 조작하여 군복무를 회피하려고 하니

이 글을 읽는 분들은 진실을 알기 바란다.

군복무를 피하는 연예인들은 다들 방법이 제각각 이지만 다 같이 유승준과 같은 마인드인듯하다.

필요에 따라 팬들을 수익수단으로 이용하거나, 군복무 여론을 피하는 방패막이로 이용하거나.

방송에서 댓글로 군대 발언을 하면 강퇴당하니

늘 최군에 대한 좋은 인식을 같고있는 사람들로 순화되는건 당연한 이치이다.


들리는 소식으로는 판결당시 

병무청 서울행정법원 김용철판사의 형이상학적인 판결문에서

"최군에게 가장 문제가 되는 부분은 감정의 기복과 충동성이다.

대인관계와 사회생활은 가능하지만 안정감있게 지속적으로 유지되기 어렵다.

시간활용이 자유롭고 지휘감독이 약한 인터넷 방송을 근거로 최군을 판단하는것은 한계가 있다.

증상의 기복이 심해

긴장이 고조된 상황에서 충동적으로 행동할 가능성이 높다.

증세를 고려할때 병역을 면제해줘야한다고 판단"




가족중 주목해야할 점은 친누나가 이화여대 법대를 나왔다고 하는데

https://www.youtube.com/watch?v=92YEHT1edb4 (27분 40초 참고)

인맥을 동원해서 법무부에 입김을 넣은 정황이 가장 의심되는 대목이다.

https://www.youtube.com/watch?v=YL-Uo05tUJc&nohtml5=False (37:40)

ch1716@naver.com


한마디로 요약하자면

법원으로 부터 승소판결 받았다는 말은 최군의 말은

그냥 최군의 말일뿐



Posted by ElectricShock
:

ADC

2016. 4. 4. 19:16
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

https://www.youtube.com/watch?v=67sYlcg_yOU

http://555riente.blogspot.kr/2012/03/programando-avr-lecturas-analogicas-e.html


If you've programmed in Arduino and now you're programming in mikroC, most likely have many commands you to take less, as "analogRead ()" and Serial.print ().Well, in this tutorial we will cover how to read analog signals and how a console us, to debug our projects.

It is important that if you do not know how to program in mikroC and have only programmed in Arduino, then it is required that you read my first post , otherwise you will not know what we're talking about, if you know, did not say anything.


For this part need :

●Our programmer (the first part)

●A Atmega168 or Atmega328

●Crystal 20Mhz

●Potentiometer 1 MegaOhm or lower

Cable FTDI  or plates FTDI

 Before we begin, let's clarify some things. This post will deal an ATmega168 (You can occupy both the 168 and the 328, all the same).This micro, unlike the ATtiny13 or 2313, you need an external crystal, so one of the things you should do from the start (now) is to place the crystal on pins 9 and 10, gives the same position. NOTE : you can take the Atmega without glass, but so we must burn the fuses. The best thing for now is to occupy a Crystal The second thing you should do immediately is to connect the pin 21-5 volts. This pin is the reference voltage and the voltage according to which it is connected, it is the result of the analog reading. Once made ​​these 2 things can continue ...



1. How do I analogRead() in MikroC ?

The function that we know as analogRead Arduino () in MikroC the call ADC_Read (x). ADC comes from Analog Digital Converter and it is important that every time you invoke this function get fixated on the datasheet of your micro AVR, as there are some that have 2 ADC ports, others have 5 (Atmega168, Atmega328) and others who have many more .





Another important point is that before occupying the ADC_Read (x) function, you must put as the first line of your code, the following line

#include <built_in.h>

Do not forget that the ADC option must be enabled, for that fijate the tabs on the right side, one of these tabs is called "Library Manager", click and find the ADC option, if their respective box has no check, you mark it It must be checked.

The only thing missing for me is explain the "x" and notice that the pin 23,24,25,26,27 and 28 have a label that says ADCX, this X is the number of ADC converter assigned, in this case the Atmega168 and 328 have 6 ADC. The first is the ADC0 and the last is the ADC5. So if you want to read a signal that is connected to pin 26, you must do ADC_Read (3), Claro? Perfect.



▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼

unsigned int i;

void main() 

{

      char cadena[8];                // definimos un arreglo de 8 espacios

      UART1_Init(9600);              // definimos la velocidad a 9600 bps

      int numero=12345678;           // este número lo queremos transformar a chars

  

      while(1)

     {

          IntToStr(numero, cadena);      // esta función transforma el numero a chars

          for (i = 0; i <7 ; i++ )    

UART1_Write(valor[i]);

          UART1_Write_Text(" ");         // dejo un pequeño espacio entre cada cifra

          delay_ms(1000);

      }

  }

▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲



2. How do Serial.print() in MikroC ?

This is another of the features that make us finish our projects in Arduino, the possibility of going debuggeando our projects, as well, in MikroC we can do the same, but often we forget or avoid because it has a difficulty bonus the first time that deal.
First things first, remember that in Arduino in the void setup do "Serial.begin (9600)," well, here will do the same, here we occupy "UART1_Init (9600)". The objective of this line is to tell the serial communication chip that will be 9600 bits per second.
To write to the console have 2 options ...

UART1_Write_Text ( "put your text here"): With this command you write a user-defined text.

UART1_Write (char [i]): With this command write a char that was defined within the code. This is the equivalent of Serial.print () command, but the difference is that here we can not enter an integer or a result, this function only accepts char's, therefore, if we know that value gives us a function, we pass the number (int, long, double) to a string and then send each char for separately from the console. 

Here you also go to Library Manager and check the UART option

To move from int to string is super easy. Suppose I have the following value

int val = 12345678

then what I want is to define a string which will have 8 chars, and each char will each character of our number. The first thing we do is define the arrangement of chars as well

char string [8];

now we

IntToStr (val, string);

And presto, now every char has a character of our number. It is important to note that these arrangements are "zero indexed", ie, the first is char string [0]. When the first char is chain [1] is called "one indexed" but it is not our case.


Perfect, now takes the FTDI cable and fijate having 6 cables. 


The black cable must connect to the land of our circuit (GND) and the yellow wire should go to pin TX (transmitter) our chip, which in the atmega168 / 328 corresponds to the pin 3.


Connect the cable to the computer FTDI fijate COM port assigned to your computer, now opens the hyperterminal and initiates a connection on the same port number that was assigned to the FTDI cable and defines the rate at 9600 bits / second.

If you have Windows Vista or Windows 7, then you will notice that the HyperTerminal is no longer, but you can download from here


Almost finished, it's time to arm the wiring

Eye, red plate serves the same function as the FTDI cable there are many replacement options for the cable, you choose the one that will be easier to achieve, the important thing here is that the land go connected to both the cable or plate next the chip, ie have common ground, and the other important thing is that the Tx pin of your chip must go to the Rx pin of your board or FTDI cable.


Usually, it is time to load our final code . Click here, copy it , paste itand load it with our programmer.

//https://raw.githubusercontent.com/sisalina/AVR-programming/master/analog_read.c

#include <built_in.h> unsigned int val; unsigned int i; void main()

{

char valor[8]; UART1_Init(9600); // Initialize UART module at 9600 bps DDRB.B2=1; while(1)

{     val = ADC_Read(3); // obtener valor An�logo de canal 3     IntToStr(val, valor);     for (i = 0; i <7 ; i++ )

UART1_Write(valor[i]); UART1_Write_Text(" "); delay_ms(100);

}

}





The video shows that by varying the voltage with potentiometer, this voltage is measured by the ADC of our chip and then this value is sent to our computer via FTDI cable.

In conclusion, as I said in the video. Arduino is much faster when viewing results in console and other things, but once you know this trick, everything is easier. In addition the program in MikroC grace is that you can work with any chip on the AVR family and this will give you an advantage when faced with a project that goes over one Atmega328 capabilities.

Comments are welcome Greetings!


Posted by ElectricShock
:
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
Posted by ElectricShock
:

BLOG main image
잡동사니들(지극히 개인취향인...) (다른글에도 댓글 부탁해요♥) You May Leave English Messages on GuestBook. by ElectricShock

공지사항

카테고리

분류 전체보기 (782)
MiDi (2)
Programming(=프로그래밍) (3)
Animation (4)
Blender (3D Graphic Program.. (10)
Blendtuts.com (Series) (1)
Blender 기초 팁들 (2)
Processing (디지털미디어과) (2)
Music (1)
Books in the world (0)
Communication(CAN, UART, et.. (12)
MCU Examples (PIC 기반) (7)
Transistor (1)
Mikro C Pro (11)
Mikro Pascal (1)
Proton IDE (0)
Robot (0)
Swift 3D (1)
Dummies Series (1)
All about Hacking (0)
제2 외국어 (1)
PIC 해외서적들 (3)
AVR (25)
PIC (MikroC) (MPLAB) (4)
Assembly (2)
ARM (3)
Arduino (26)
PSpice (1)
Proteus ISIS (14)
CodeVision (2)
FPGA (15)
MPLAB (24)
PCB (the Procedure) (15)
3D Printer (5)
PICKIT3 (6)
Matlab (11)
RaspBerry PI (15)
BeagleBone (1)
Android Studio (17)
졸업작품 (172)
Korea History (0)
Issue(사회) (73)
Multimeter 리뷰 (1)
Oscilloscope (1)
A (34)
B (19)
J (6)
C (32)
P (12)
T (37)
H (12)
I (12)
M (44)
R (5)
E (5)
F (2)
D (9)
O (2)
L (7)
S (9)
W (2)
V (6)
G (14)
Visual C++ or Visual Studio (2)
Android App Development (0)

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백