embeded/arduino(genuino)2016. 4. 27. 09:08

아두이노 예제에 있는데 머하는 넘인지 찾아 봐야지




[링크 : https://www.arduino.cc/en/Reference/Firmata]

[링크 : https://github.com/firmata/protocol]

[링크 : http://www.firmata.org/wiki/Main_Page]

'embeded > arduino(genuino)' 카테고리의 다른 글

arduino nano 스펙(PWM)  (0) 2016.11.25
아두이노 프로세싱(언어)  (0) 2016.05.09
attiny2313 usb client  (0) 2016.04.19
arduino usb joystic / atmega32u4  (0) 2016.04.19
processing / arduino / mpu-6050  (0) 2016.04.14
Posted by 구차니
embeded/arduino(genuino)2016. 4. 19. 22:07

attiny 12MHz로 일반 gpio를 이용 저속 usb 통신하는 녀석..

int0 / int1 인가.. gpio로 pd2 / pd3 일려나..


[링크 : http://codeandlife.com/2012/01/22/avr-attiny-usb-tutorial-part-1/]

[링크 : http://codeandlife.com/2012/01/25/avr-attiny-usb-tutorial-part-2/]

[링크 : http://codeandlife.com/2012/01/29/avr-attiny-usb-tutorial-part-3/]

[링크 : http://codeandlife.com/2012/02/04/avr-attiny-usb-tutorial-part-4/]



USBtiny is a software implementation of the USB low-speed protocol for the Atmel ATtiny microcontrollers.

[링크 : http://dicks.home.xs4all.nl/avr/usbtiny/]


V-USB is a software-only implementation of a low-speed USB device for Atmel’s AVR® microcontrollers, making it possible to build USB hardware with almost any AVR® microcontroller, not requiring any additional chip.




[링크 : https://www.obdev.at/products/vusb/index.html]

'embeded > arduino(genuino)' 카테고리의 다른 글

아두이노 프로세싱(언어)  (0) 2016.05.09
arduino firmata  (0) 2016.04.27
arduino usb joystic / atmega32u4  (0) 2016.04.19
processing / arduino / mpu-6050  (0) 2016.04.14
아두이노.. gpio로 pwm 신호 출력  (0) 2016.04.13
Posted by 구차니
embeded/arduino(genuino)2016. 4. 19. 21:59

아두이노로 조이스틱이나 키보드 만드는게 보여서 검색을 해보니

특정 버전의 아두이노에서만 되는 이유가

ATmega??U4 시리즈에는 USB 컨트롤러가 내장되어 있어서 였군 -_-


ATmega16U4/ATmega32U4

8-bit Microcontroller with 16/32K bytes of ISP Flash and USB Controller

[링크 : http://www.atmel.com/images/atmel-7766-8-bit-avr-atmega16u4-32u4_datasheet.pdf]


[링크 : http://www.instructables.com/id/Add-USB-Game-Controller-to-Arduino-LeonardoMicro/]

[링크 : https://github.com/MHeironimus/ArduinoJoystickLibrary]




'embeded > arduino(genuino)' 카테고리의 다른 글

arduino firmata  (0) 2016.04.27
attiny2313 usb client  (0) 2016.04.19
processing / arduino / mpu-6050  (0) 2016.04.14
아두이노.. gpio로 pwm 신호 출력  (0) 2016.04.13
아두이노 스테핑 모터..  (0) 2016.04.13
Posted by 구차니
embeded/AVR (ATmega,ATtiny)2016. 4. 16. 22:55

atmega 시리즈

UST-MPB-ATmega128 v1 7H46 HC573

http://www.us-technology.co.kr/product/product_main.asp?mode=101&smode=2


UST-MPB-ATmega128 v3 74HC573 / CS18LV02565ACR70

http://www.us-technology.co.kr/product/product_main.asp?mode=101&smode=9



http://www.gravitech.us/arduino.html  / arduino nano 3.1

? arduino nano 3.0



MEGA128_XBee

http://www.cpuplaza.co.kr/goods_detail.php?goodsIdx=446



GS-08A ATmega8

http://www.gersangin.com/shop/goods/goods_view.php?&goodsno=1092&category=025


gy-291 / adxl-345

https://www.eleparts.co.kr/EPXFBJ8Cbrand



AT89S52

ATTINY2313-20PU

ATMEGA8A-PU


HD74HC244P


MAX232CPE


LM324

L297 / L298N

SLA7033M



음.. 이것들로 멀 하면 좋을까나...

'embeded > AVR (ATmega,ATtiny)' 카테고리의 다른 글

우리로봇기술 사이트 폐쇄  (0) 2016.08.24
avr iar __flash winavr PROGMEM  (0) 2016.07.06
avr pwm timer 계산기  (0) 2016.04.14
atmega sram external  (0) 2016.04.12
avr에 스피커 달기  (0) 2016.03.16
Posted by 구차니
embeded/raspberry pi2016. 4. 15. 17:34

한줄요약하면..

마스터가 둘이거나, 선이 뒤바뀌었거나?



$ i2cdetect -y 1

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00:          03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f

10: 10 11 12 13 14 15 16 17 18 19 1a UU 1c 1d 1e 1f

20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f

30: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f

40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f

50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f

60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f

70: 70 71 72 73 74 75 76 77 



Generally this happens because something is pulling SDA (pin 3) low.


The i2cdetect program checks for the existence of a device by sending its address then letting SDA float high. If the device exists it should pull SDA low to signal its presence.


Check your wiring to make sure SDA hasn't been inadvertently connected to ground.


[링크 : http://raspberrypi.stackexchange.com/questions/32719/i2cdetect-shows-every-possible-address]


1. Two masters on the same I2C bus.

2. SDA & SCL swapped.

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=93222]


+ 젠장.. 멀티 마스터였던건가!

Posted by 구차니
embeded/AVR (ATmega,ATtiny)2016. 4. 14. 17:16

음... 생각해보니 스테핑 모터 L297에 클럭으로 넣어줄때.. PWM을 이용해 주파수를 변조하면 될 기분?

덤으로.. 스피커 붙여서 pwm으로 스피커 달때도 쓸만해 보이고?


[링크 : http://aquaticus.info/pwm-frequency]

[링크 : http://eleccelerator.com/avr-timer-calculator/]



헐?! 프로그램!




[링크 : http://www.avrcalc.com/download.html]

'embeded > AVR (ATmega,ATtiny)' 카테고리의 다른 글

avr iar __flash winavr PROGMEM  (0) 2016.07.06
부품들 정리  (0) 2016.04.16
atmega sram external  (0) 2016.04.12
avr에 스피커 달기  (0) 2016.03.16
클론 avrisp avr studio 6 호환성(?)  (0) 2016.03.07
Posted by 구차니
embeded/arduino(genuino)2016. 4. 14. 17:07

음... euler angle 이란걸 발견해서 이미지로 검색하다 보니..

역시 세상은 넓고 찾아 쓰는것도 빡세구나..



[링크 : http://itempage3.auction.co.kr/DetailView.aspx?ItemNo=A850550620]


이미지에 보니.. FreeIMU 란게 보이는데.. 보드네?

[링크 : http://www.varesano.net/projects/hardware/FreeIMU]



[링크 : http://diyhacking.com/arduino-mpu-6050-imu-sensor-tutorial/]

[링크 : http://www.geekmomprojects.com/mpu-6050-dmp-data-from-i2cdevlib/]

[링크 : https://en.wikipedia.org/wiki/Gimbal_lock]

[링크 : https://github.com/jrowberg/i2cdevlib] 라이브러리

'embeded > arduino(genuino)' 카테고리의 다른 글

attiny2313 usb client  (0) 2016.04.19
arduino usb joystic / atmega32u4  (0) 2016.04.19
아두이노.. gpio로 pwm 신호 출력  (0) 2016.04.13
아두이노 스테핑 모터..  (0) 2016.04.13
아두이노 내장 온도 센서 테스트  (0) 2016.04.11
Posted by 구차니
embeded/Cortex-M3 Ti2016. 4. 14. 13:51

아.. 이래서 시간이 초기화가 안된거였나..





unsigned long ulStatus;

unsigned long ulNVData[64];

//

// Need to enable the hibernation peripheral before using it.

//

SysCtlPeripheralEnable(SYSCTL_PERIPH_HIBERNATE);

//

// Enable clocking to the Hibernation module.

//

HibernateEnableExpClk(SysCtlClockGet());

//

// User-implemented delay here to allow crystal to power up and stabilize.

//

//

// Configure the clock source for Hibernation module, and enable the RTC

// feature. This configuration is for a 4.194304 MHz crystal.

//

HibernateClockSelect(HIBERNATE_CLOCK_SEL_DIV128);

HibernateRTCEnable();

//

// Set the RTC to 0, or an initial value. The RTC can be set once when the

// system is initialized after the cold-startup, and then left to run. Or

// it can be initialized before every hibernate.

//

HibernateRTCSet(0);

//

// Set the match 0 register for 30 seconds from now.

//

HibernateRTCMatch0Set(HibernateRTCGet() + 30);

//

// Clear any pending status.

//

ulStatus = HibernateIntStatus(0);

HibernateIntClear(ulStatus);

//

// Save the program state information. The state information will be

// stored in the ulNVData[] array. It is not necessary to save the full 64

// words of data, only as much as is actually needed by the program.

//

HibernateDataSet(ulNVData, 64);

//

// Configure to wake on RTC match.

//

HibernateWakeSet(HIBERNATE_WAKE_RTC);

//

// Request hibernation. The following call may return since it takes a

// finite amount of time for power to be removed.

//

HibernateRequest(); 


'embeded > Cortex-M3 Ti' 카테고리의 다른 글

keil uvision에서 colink-ex 연동하기  (0) 2016.09.02
ekc-lm3s811 를 ICDI로 사용하기  (0) 2016.08.27
cortex-m3 인터럽트 관련 조사  (0) 2016.02.18
uart tx interrupt  (0) 2015.12.18
coflash 구조 및 에러 메시지..  (0) 2015.12.11
Posted by 구차니
embeded/arduino(genuino)2016. 4. 13. 15:42

그냥 정말 날로 먹는 코드

D3와 D6을 스피커로 연결해서

GPIO를 통해 해보니..

492.8Hz 로 duty 50% 정도의 PWM 파형이 나오는데

이걸로 음악을 어떻게 해볼까...




void setup() {
  // put your setup code here, to run once:
  pinMode(3, OUTPUT);
  pinMode(6, OUTPUT);
  digitalWrite(6, 0);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(3, 1);
  delay(1);
  digitalWrite(3, 0);
  delay(1);
}


'embeded > arduino(genuino)' 카테고리의 다른 글

arduino usb joystic / atmega32u4  (0) 2016.04.19
processing / arduino / mpu-6050  (0) 2016.04.14
아두이노 스테핑 모터..  (0) 2016.04.13
아두이노 내장 온도 센서 테스트  (0) 2016.04.11
아두이노 3.3V  (0) 2016.04.09
Posted by 구차니
embeded/arduino(genuino)2016. 4. 13. 09:39

와... 몰라도 쓸수 있을 것만 같은 기분?

어째... 달링턴 쓰는게 더 직관적인 기분이지?


[링크 : http://wiki.vctec.co.kr/opensource/arduino/steppermotor] L293D / 아두이노 스테핑 라이브러리

[링크 : http://www.ohm.co.kr/...&num1=999987&num2=00000&lock=N] UNL2003 달링턴 어레이


'embeded > arduino(genuino)' 카테고리의 다른 글

processing / arduino / mpu-6050  (0) 2016.04.14
아두이노.. gpio로 pwm 신호 출력  (0) 2016.04.13
아두이노 내장 온도 센서 테스트  (0) 2016.04.11
아두이노 3.3V  (0) 2016.04.09
아두이노 퓨즈비트 설정관련  (0) 2016.04.07
Posted by 구차니