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 구차니
이론 관련/전기 전자2016. 4. 14. 18:44

bayer 포맷은 디카의 raw 포맷이라고 하면 될 것 같은데...

일단.. RGB나 YUV와는 달리

순수하게 센서의 데이터를 그대로 전송 받는데 이미지 센서의 RGB 픽셀은 bayer pattern을 따르게 되고

3x3 bayer 데이터를 하나의 RGB 픽셀로 변환하는 수학 공식을 거쳐 우리가 보는 영상이 되는 듯




Example 2.3. V4L2_PIX_FMT_SGBRG8 4 × 4 pixel image

Byte Order. Each cell is one byte.


start + 0: G00 B01 G02 B03

start + 4: R10 G11 R12 G13

start + 8: G20 B21 G22 B23

start + 12: R30 G31 R32 G33


Example 2.2. V4L2_PIX_FMT_SBGGR8 4 × 4 pixel image
Byte Order. Each cell is one byte.

start + 0: B00 G01 B02 G03
start + 4: G10 R11 G12 R13
start + 8: B20 G21 B22 G23
start + 12: G30 R31 G32 R33

[링크 : https://linuxtv.org/downloads/v4l-dvb-apis/pixfmt-rgb.html] <<


[링크 : http://blog.naver.com/sunflowerove/60026207550]

[링크 : http://www.peter-cockerell.net/Bayer/bayer.html]

'이론 관련 > 전기 전자' 카테고리의 다른 글

Load Capacitor - CL  (0) 2016.10.26
NTSC, PAL, CVBS  (0) 2016.05.25
패럿(farad) / 암페어(ampere) 변환  (0) 2016.04.14
genlock  (0) 2016.04.05
tri-state  (0) 2016.03.30
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 구차니
이론 관련/전기 전자2016. 4. 14. 16:21

링크가 깨졋...

슈퍼캐패시터 보다가 보니.. 단위가 F 라서

감이 안오는 지라...


Wh = (F * V * V) / (3600 * 2)


인건가?

1F 5V 라면..

25 / 7200 = 0.0034722222222222 = 3.4mWh ?



Energy (Joule) = ½ x Capacitance (Farad) x Voltage2 (Volts) 패럿(Farad)을 일반적 충전 배터리의 와트(Watt)단위로 변환할 때 적용 할 수 있습니다.

Energy (Watt hour) = Energy (Joule) / 3600 (sec) LS엠트론에서는 최대전압에서 절반 정도까지, 전체 에너지의 ¾까지 방출할 것을 권장합니다.


Capacity of CellUltracapacitor Units
[F]
Conversion to Battery Units
[Wh]
Operation voltage
(2.8V - 1.4V)
120 F98m Wh
350 F286m Wh
3000 F2.45 Wh

[링크 : http://webcache.googleusercontent.com..www.ultracapacitor.co.kr/ko/ultracapacitor/comparison.html..o]

[링크 : http://www.ultracapacitor.co.kr/ko/ultracapacitor/comparison.html]

'이론 관련 > 전기 전자' 카테고리의 다른 글

NTSC, PAL, CVBS  (0) 2016.05.25
bayer 포맷 출력...?  (0) 2016.04.14
genlock  (0) 2016.04.05
tri-state  (0) 2016.03.30
solid state  (0) 2016.01.17
Posted by 구차니
파일방2016. 4. 14. 14:17

아두이노랑 비슷한 느낌이네..





[링크 : http://www.ti.com/tool/energia]



What Are the LaunchPads Supported?

Energia provides native support for the following LaunchPads:

  • LaunchPad with MSP430G2231, MSP430G2452 or MSP430G2553 or LaunchPad
  • Experimeter Board with MSP430FR5739 or FraunchPad
  • LaunchPad with MSP430F5529 or FattyPad
  • LaunchPad with MSP430FR5969
  • LaunchPad with Stellaris LM4F120 or Tiva C Series TM4C123 or StellarPad
  • Connected LaunchPad with Tiva C Series TM4C129

[링크 : https://github.com/energia/energia]

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 구차니