Pages

Tampilkan postingan dengan label 2. Tampilkan semua postingan
Tampilkan postingan dengan label 2. Tampilkan semua postingan

Senin, 06 Juni 2016

8 Jeremy Blum Video SPI Serial Peripheral Interface Bus

The topic of this Thursdays Humboldt Microcontrollers Group meeting is the #8 Jeremy Blum Arduino video tutorial, which covers SPI, the Serial Peripheral Interface data bus.
Jeremys SPI diagram

Wikipedia says this about SPI:
"...SPI bus is a synchronous serial data link...that operates in full duplex mode. It is used for short distance, single master communication, for example in embedded systems, sensors, and SD cards. Devices communicate in master/slave mode where the master device initiates the data frame. Multiple slave devices are allowed with individual slave select lines. Sometimes SPI is called a four-wire serial bus, contrasting with three-, two-, and one-wire serial buses. SPI is often referred to as SSI (Synchronous Serial Interface)."
During the #8 video exercise, you will build a program using SPI, doing things like including the SPI library, setting the slave select pins, and sending information on the SPI bus with the SPI.transfer command. Going through this exercise doesnt make you an SPI expert, but it does help you learn a few basic aspects of SPI. For a more thorough background on this topic, take the time to go through the SparkFun tutorial on SPI.

AD5204BN10 digital potentiometer
In addition to SPI, the #8 video also introduces digital potentiometers. The digipot used in the #8 video is an AD5204BN10, which appears to be discontinued, obsolete or just very rare, so most people doing the exercise in this video will have to use an alternative digital potentiometer. I spent ten or fifteen minutes on Digi-Key trying to find an alternative component that was equivalent to the AD5204BN10 but finally decided Ill just wait to discuss that at the meeting on Thursday.

In the meantime, I did a bit of research on digital potentiometers so Id understand a little more about how they work and when to use them. Analog Devices has a tutorial on digipots, and since they made the one that Jeremy uses in the video, I decided the AD tutorial was a good place to start. Nine pages later I decided I was wrong. The AD tutorial was written for an electrical engineer, not a novice electronics person. Electronic Design (ED) had a much better newbie introduction to digipots. ED said:
Breadboard setup for #8 video exercise
"Digital potentiometers are integrated circuits that implement a resistive ladder and a digital means of addressing a particular tap on the ladder that corresponds to the wiper position of a mechanical potentiometer. They’re used to calibrate system tolerances or dynamically control system parameters. Some of them have no on-chip memory. Others incorporate nonvolatile memory for saving the wiper position...What advantages do digital potentiometers have over mechanical pots? Obviously, digital pots can be operated in a closed control loop, and they don’t require physical access for adjustment. In addition, they offer higher resolution than mechanical pots, along with better reliability and stability, faster adjustment, better dynamic control, and a smaller footprint."
Jeremys use for the digital potentiometer in the #8 video exercise is to vary the input voltage to LEDs to change their brightness. I dont know if thats a typical application for a digital potentiometer, but its a good way to learn about this component.

If youre interested in microcontrollers, please come to the Humboldt Microcontrollers Group meeting this Thursday, July 24, from 6 to 8 PM at 1385 8th Street, Arcata, California, USA. Bring your questions and your enthusiasm -- we look forward to seeing you there!

**********
Read More..

Jumat, 20 Mei 2016

å±ˆå°ºè¾²å ´ 二 My AP farm in Taiwan 2

??

?????????????????????????????????????????????????????????????????????PEP????????????























???????????????????

???? ?????

?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????!























????

???????????????????????????????????????????????????????????????????????

 ??????????

??????????????????????????????????????????"??"?????????????????????????????????????????????????????????????????????????????! ????????????????????????????????????????????????????????????????

???? 

3?11?(???)??Sunny????????????????????????????????????????????????????????????????????????????????--??????????????????????????????????????????????????????



??Sunny?????????????????????????(?????)????????????????3???????????????? 
?
?


 ???????????????????? !

?? !
?
?????

?????????????????????????????????????????????????????????????????????? ! (??...)












Read More..

Sabtu, 14 Mei 2016

å±ˆå°ºè¾²å ´ 三 My AP farm in Taiwan 3

????

?????????????????????????????????????????????????????????????????????"????"?? (Taiwan Aquaponics Associaion) ??Sunny Arky???????????????????????????????????????????????Aquaponics????????Sunny?????????????????????AP???????????????????????????????????????????????????????

Sunny????????????????????????????(??????????????: ?????????????????????) ????????Sunny????????????(????????)?????????????????????????????????????????????????????????????Sunny??????????????????????????????????????????????????????????????





????? "????"?? ???????????????????????????????????????: ????????????????????Sunny?????????????????????????????????Sunny???Bin??????????????????????Sunny????????????????????????????????????????????????????????????????
























????????

??????????AP??????????????????????Aquaponics???????????????????????????????????????????????????AP??????????????????????????????????????????????????

???????????????AP???????????????????????????Aquaponics?????????????????????????????????????????????????????????????????????????????????AP???????????????????



????

?????????????????????????Bin???????????????????????3/31???????????????????????????????????????????????????????????????????????????Sunny???????????????????????????

 























??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

????????:??????????????????????????????????????????????????? "????"????????????????????????????????????
Read More..

Rabu, 30 Maret 2016

The Humboldt Laser Harp Project Part 2

[See Part 1 of the Humboldt Laser Harp project here]

So, Im still glad Im part of the Humboldt Laser Harp (HLH) project. But boy do I feel useless and clueless about whats going on from a technical standpoint...
SparkFun MIDI breakout board

There have been a few emails back and forth today between Ed, Nick and me about the HLH project. Eds getting a lot of the programming concepts figured out, e.g. "...I think Ive solved (assuming that any of this actually talks to a MIDI thing, anyway) the 16 string limit. The 16 MIDI channels are now dynamically assigned to different strings as needed, and released when the string is released. Not sure what would happen if you broke more than 16 beams. Probably the beams >16 simply wouldnt be played. Currently the notes have a hard cut on the end of them rather than a fade...Ill work on that if/when I have a sudden flash of insight. The number of analog input pins are the only limiting factor for the number of strings now. Given external comparators or an external (fast) ADC or analog multiplexer an Arduino could do a ton of strings with more or less this same code..." Nick is doing his part by pulling apart a laser and 3D printing a holder for the laser so we can easily fine tune where the laser is pointing. Hes also going to dig up a USB MIDI input for Ed to use during the design phase of this project.
SDS-50J MIDI connector

Tonight Ed evaluated using a SparkFun MIDI breakout board vs. the SparkFun MIDI shield vs. rolling his own MIDI connection. He decided to roll his own, and at this point, all he needs is a CUI Inc SDS-50J MIDI (DIN 5 pin) connector and a Lite-On Inc 6N137 optocoupler. Hes ordering those from Digi-Key, for a total of $1.78 plus shipping. Heres the optocoupler datasheet link if you want to read up on that.

Me? Im mostly reading the emails about what theyre doing.

6N137 optocoupler
Oh well, The important thing is a laser harp MCU device is being designed, the Humboldt Microcontrollers Group has launched their first group project, and well end up with v.1.0 of what will eventually be an interesting example of what you can do with MCUs.

Returning to the HLH launch meeting we had yesterday, here are a few other points about the project as it currently stands.
  • The laser harp will be the framed style rather than the unframed style. See the two pictures below.
    Unframed laser harp
  • The tentative height of the v.1.0 harp is 36 inches. The laser harp frame will probably be placed on a table when its exhibited in public, and probably on a somewhat lower stand when a laser harpist is sitting in a chair playing it. The width will likely be between 36 and 48 inches, so that its portable, so that an open horizontal hand can easily interrupt just one beam without accidentally breaking an adjacent beam, and so a laser harpist can comfortably reach all the beams.
  • Nick will provide computer speakers, a MIDI sequencer and an amplifier.
  • The goal of this project is to make a musical instrument, not just an electronic tone generator.
  • Yesterdays post referred to the Electronic Light Orchestra. The reason I used the word Light in that descriptive name is because:
    • When the laser harp is in a dark environment, the laser beams will be a light source.
      Framed laser harp
    • Nick has a color organ we will work to integrate into the HLH. The light organ has RGB LEDs that change intensity and color in response to music (audio frequency range) and the settings of the organ.
    • If I understood Nick correctly, we may also try out incorporating some background laser light show effects with the HLH.
  • One aspect of the laser harp we need inspiration and a bit of technical expertise, or at least some creative thinking, is laser beam presence enhancing. I hope that term is self-explanatory, but the issue we need to address is how to make a low-powered laser beam most noticeable by a person if the laser harp is not in a very dark environment or if the person playing the harp is not looking closely at the laser beam. Some of the enhancing techniques weve discussed are:
    • a fog machine, especially some type of fog generator that specifically is generating or concentrating fog in the area where the laser beams are.
    • a black booth or mini-pavilion that can be set up to enclose the laser harp and make the laser beams more visible.
      Fog machine
    • an air pulse generator that would put a concentrated air stream in the same location as the laser beam.
    • a water jet that runs in the same area as the laser beam.
    • Some other type of haptic signal that the laser harp player would feel when their finger or hand was breaking the laser beam.
  • Im going to research laser safety issues to make sure we understand what laser strength or power is acceptable for use with the general public so we dont have anyone get burned by the laser (skin or eyes).
Enough for tonight. More HLH posts will be showing up over the next couple weeks. Maybe Ed or Nick will have something they get so interested in whilst working on their parts of the laser harp that theyll feel compelled to write a blog post or two!

**********
Read More..