User Tools

Site Tools


journal:201307

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
journal:201307 [2013/07/21 04:13] 220.86.36.224journal:201307 [2018/07/18 14:10] (current) – external edit 127.0.0.1
Line 460: Line 460:
   * https://github.com/ajhc/demo-cortex-m3/tree/master/stm32f3-discovery   * https://github.com/ajhc/demo-cortex-m3/tree/master/stm32f3-discovery
  
-제용형 google plus보다가 잡스의 메시지 영상을 보았다. +제용형 google plus보다가 잡스의 메시지 영상을 보았다. next시절 컴퓨터로 교육을 바꾸고 싶었던 비전. 여러가지가 생각이 들면서, 앨런케이, 더글라스 엥겔바트를 생각해보게 된다. 
  
 > 당신의 인생이라고 일컷는 모든것(주변의)이 당신보다 똑똑하지 않은 사람들에 의해 만들어졌다는 것과 그것이 당신에게 미치는 영향을 생각 해보자. 당신이 영향을 미칠 수 있고, 다른사람들이 이용할 수 있는 당신만의 무엇가를 만들 수 있다는 사실 입니다. > 당신의 인생이라고 일컷는 모든것(주변의)이 당신보다 똑똑하지 않은 사람들에 의해 만들어졌다는 것과 그것이 당신에게 미치는 영향을 생각 해보자. 당신이 영향을 미칠 수 있고, 다른사람들이 이용할 수 있는 당신만의 무엇가를 만들 수 있다는 사실 입니다.
 +
 +----
 +
 +쿼드콥터 콘트롤러 autopilot px4
 +
 +요게 갑이구만!
 +
 +https://pixhawk.ethz.ch/px4/en/start
 +
 +----
 +
 +avrdude in coffeescript. 
 +
 +stk500 프로토콜이 복잡한게 아니구만!
 +
 +출처: http://jeelabs.org/2013/03/27/avrdude-in-coffeescript/
 +
 +<code coffeescript>
 +
 +{SerialPort} = require 'serialport'
 + 
 +pageBytes = 128
 + 
 +avrUploader = (bytes, tty, cb) ->
 +  serial = new SerialPort tty, baudrate: 115200
 + 
 +  done = (err) ->
 +    serial.close ->
 +      cb err
 + 
 +  timer = null
 +  state = offset = 0
 +  reply = ''
 + 
 +  states = [ # Finite State Machine, one function per state
 +    ->
 +      ['0 ']
 +    ->
 +      buf = new Buffer(20)
 +      buf.fill 0
 +      buf.writeInt16BE pageBytes, 12
 +      ['B', buf, ' ']
 +    ->
 +      ['P ']
 +    ->
 +      state += 1  if offset >= bytes.length
 +      buf = new Buffer(2)
 +      buf.writeInt16LE offset >> 1, 0
 +      ['U', buf, ' ']
 +    ->
 +      state -= 2
 +      count = Math.min bytes.length - offset, pageBytes
 +      buf = new Buffer(2)
 +      buf.writeInt16BE count, 0
 +      pos = offset
 +      offset += count
 +      ['d', buf, 'F', bytes.slice(pos, offset), ' ']
 +    ->
 +      ['Q ']
 +  ]
 + 
 +  next = ->
 +    if state < states.length
 +      serial.write x  for x in states[state++]()
 +      serial.flush()
 +      reply = ''
 +      timer = setTimeout (-> done state), 300
 +    else
 +      done()
 + 
 +  serial.on 'open', next
 + 
 +  serial.on 'error', done
 + 
 +  serial.on 'data', (data) ->
 +    reply += data
 +    if reply.slice(-2) is '\x14\x10'
 +      clearTimeout timer
 +      next()
 +      
 +#And here’s a little test which uploads the RF12demo sketch into a JeeNode over serial:
 +
 +fs = require 'fs'
 +hex = fs.readFileSync '/Users/jcw/Desktop/RF12demo.cpp.hex', 'ascii'
 + 
 +hexToBin = (code) ->
 +  data = ''
 +  for line in code.split '\n'
 +    count = parseInt line.slice(1, 3), 16
 +    if count and line.slice(7, 9) is '00'
 +      data += line.slice 9, 9 + 2 * count
 +  new Buffer(data, 'hex')
 + 
 +avrUploader hexToBin(hex), '/dev/tty.usbserial-AH01A0GD', (err) ->
 +  console.error 'err', err  if err
 +  console.log hexToBin(hex).length
 +  
 +</code>
 +
 +
 +
 +====== 7월 31일 ======
 +
 +pick and place 기기 재료.
 +
 +{{http://i.imgur.com/R0Hoifs.png?300}}
 +
 +출처: http://vpapanik.blogspot.gr
 +
 +참고: 
 +  - http://vpapanik.blogspot.gr/2012/11/low-budget-manual-pick-place.html
 +  - http://www.youtube.com/watch?feature=player_embedded&v=bkYNBFXlJYQ
 +
 +dxf 파일에 재단할 내용 다 나옴. 
 +
 +재료
 +  - Manual pick and place http://www.ebay.com/itm/260295062994
 +  - USB Digital 200x Magnifier http://www.ebay.com/itm/170740468371
 +  - Vacuum Pump with foot switch for Aquarium
 +  - 패달 스위치 :  http://devicemart.co.kr/goods/view.php?seq=37818 http://eleparts.co.kr/EPX64HPF http://devicemart.co.kr/goods/list.php?category=003005017
 +  - 바늘 2 종류 (좀더 작은거 집을려면 작은 바늘이 있어야 하네) 
 +  - part list http://i.imgur.com/sHeJejb.png
 +
 +오사카의 발판 스위치회사: ojiden foot switch 
 +http://blog.naver.com/PostView.nhn?blogId=tomyskaters&logNo=80075200635&redirect=Dlog&widgetTypeCall=true
 +
 +
 +{{http://i.imgur.com/sHeJejb.png?200}}
journal/201307.1374380034.txt.gz · Last modified: 2018/07/18 14:09 (external edit)