By Gabriel Staples
Written: 21 Nov 2016
Last Updated: 21 Nov 2016
Here is a sample code I wrote a couple years ago to command and control a MAX5481 digital potentiometer using SPI commands, including storing commands in the chip's on-board EEPROM (to save the last value written), or not.
In this example you have to type commands into the Arduino Serial Monitor to set the digital potentiometer. I then interpret your serial command you typed, then I send it to the MAX5481 via its defined serial SPI API.
The circuit and hookup is described in full in my comments at the top of my code. If you have any questions please post a comment below and I'll be sure to try and get back to you.
Enjoy.
Hot Links
- Home
- Custom Firmware (Hire Me)
- Site Map/Table of Contents
- About Me (w/resume & thesis)
- Feedback/Corrections/Contact me
- YouTube
- Instructables
- PRODUCTS/MANUALS
- MY PRODUCTS ON AMAZON
- DOWNLOADS
- Donate $
- BattleBots
- Parallel Charging LiPos
- Beg. Airplane
- Beg. RC Heli & Quad
- Scratch Bldg. 20+ Planes
- Getting Started...(Old Site)
Monday, November 21, 2016
Tuesday, November 8, 2016
Eagle PCB CAD - How to copy a part from one schematic to another
Subscribe by Email!
Gabriel Staples
8 Nov 2016
Learning EagleCAD? Here's how to copy a part from one schematic or board layout to another.
Done!
Helpful References:
8 Nov 2016
Learning EagleCAD? Here's how to copy a part from one schematic or board layout to another.
- Open up an Eagle Control Panel, and the board and schematic you are working on.
- Open up a *second* Eagle Control Panel, and the board and schematic you want to copy from.
- Use the group tool to make a selection of a part to copy.
- Click the copy tool, then ctrl + right click to copy the *grouped* selection to the clipboard. Press Esc now to not paste it anywhere in this project.
- Note that you *must* use the group tool followed by ctrl + right click even if only copying a single object, since that's the only way to get it to your PC's clipboard.
- Go back to the schematic you'd like to paste into, and click the "paste" tool. Left-click anywhere to paste what's in the clipboard.
Done!
Helpful References:
- https://learn.sparkfun.com/tutorials/using-eagle-schematic
- https://learn.sparkfun.com/tutorials/using-eagle-board-layout
...among many others.
***Subscribe by Email!***
Monday, October 24, 2016
Learning More About Power Electronics
Subscribe by Email!
By Gabriel Staples
Written: 24 Oct. 2016
Last Updated: 24 Oct. 2016
Other Articles:
PowerElectronicsNews is a brand new company who offers "electrical engineering news focused on power and power solutions," including highlighting "solutions and products featuring the latest innovations" in power design. As I continue to grow my skills I hope to be able to apply some of the background knowledge I glean from their articles, so I can use it in real, hands-on projects I can then share and apply instead of just reading a high-level description of it. A few interesting-looking articles of theirs include the following. I have marked with asterisks the articles that particularly interest me. The more asterisks, the better.
Written: 24 Oct. 2016
Last Updated: 24 Oct. 2016
Other Articles:
- Adding & Customizing Nicely-formatted Blocks of Source Code on Your Website using SyntaxHighlighter
- Arduino-like millisecond (ms) and microsecond (us)-resolution timestamps in Python: millis(), micros(), delay(), & delayMicroseconds()
- BattleBots Season 2 "Buzz" Fire Drone for Team Caustic Creations, with Team Interviews & fire-shooting Videos
- The Power of Arduino
- Restoring/Recharging Over-discharged LiPo (Lithium Polymer) Batteries!
- Parallel Charging Your LiPo Batteries
- Using the Arduino Uno’s built-in 10-bit to 16+-bit ADC (Analog to Digital Converter)--an Article on Oversampling
- Beginner RC Airplane Setup
PowerElectronicsNews is a brand new company who offers "electrical engineering news focused on power and power solutions," including highlighting "solutions and products featuring the latest innovations" in power design. As I continue to grow my skills I hope to be able to apply some of the background knowledge I glean from their articles, so I can use it in real, hands-on projects I can then share and apply instead of just reading a high-level description of it. A few interesting-looking articles of theirs include the following. I have marked with asterisks the articles that particularly interest me. The more asterisks, the better.
***Subscribe by Email!***
Friday, October 21, 2016
Adding & Customizing Nicely-formatted Blocks of Source Code on Your Website using SyntaxHighlighter
Subscribe by Email!
By Gabriel Staples
Written: 21 Oct. 2016
Last Updated: 21 Oct. 2016
Related Articles:
Other Articles:
Written: 21 Oct. 2016
Last Updated: 21 Oct. 2016
Related Articles:
Other Articles:
- Arduino-like millisecond (ms) and microsecond (us)-resolution timestamps in Python: millis(), micros(), delay(), & delayMicroseconds()
- BattleBots Season 2 "Buzz" Fire Drone for Team Caustic Creations, with Team Interviews & fire-shooting Videos
- The Power of Arduino
- Restoring/Recharging Over-discharged LiPo (Lithium Polymer) Batteries!
- Parallel Charging Your LiPo Batteries
- Using the Arduino Uno’s built-in 10-bit to 16+-bit ADC (Analog to Digital Converter)--an Article on Oversampling
- Beginner RC Airplane Setup
***Subscribe by Email!***
Monday, July 11, 2016
Arduino-like millisecond (ms) and microsecond (us)-resolution timestamps in Python: millis(), micros(), delay(), & delayMicroseconds()
Subscribe by Email!
By Gabriel Staples
Written: 11 July 2016
Last Updated: 22 Oct 2016
History (newest on top):
-posted updated code (v0.2.1) with Linux functions too (not just Windows) - 22 Oct. 2016
Other Articles:
as-written, they work for Python in Windows only. If you decide to adapt them to Linux, please share how you did it in the comments section. Update (19 Oct 2016): I have updated these functions to work with Python in Linux now too! See below.
Functions and code samples. Functions include:
micros()
millis()
delay()
delayMicroseconds()
Written: 11 July 2016
Last Updated: 22 Oct 2016
History (newest on top):
-posted updated code (v0.2.1) with Linux functions too (not just Windows) - 22 Oct. 2016
Other Articles:
- BattleBots Season 2 "Buzz" Fire Drone for Team Caustic Creations, with Team Interviews & fire-shooting Videos
- The Power of Arduino
- Beginner RC Airplane Setup
- Thunder AC680/AC6 Charger & Computer Data-Logging Software
- Parallel Charging Your LiPo Batteries
Functions and code samples. Functions include:
micros()
millis()
delay()
delayMicroseconds()
***Subscribe by Email!***
Subscribe to:
Posts (Atom)
