element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Forget Me Not Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Forget Me Not Design Challenge
  • More
  • Cancel
Forget Me Not Design Challenge
Blog Forget Me Not - A brief update
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: kipe
  • Date Created: 19 Sep 2014 5:23 PM Date Created
  • Views 335 views
  • Likes 0 likes
  • Comments 0 comments
  • forget_me_not
  • tektronix
  • oscilloscope
  • raspberry_pi
  • iot_python
Related
Recommended

Forget Me Not - A brief update

kipe
kipe
19 Sep 2014

First of all, sorry for my absence...

A small list of excuses: a) been sick, b) been busy with school, c) haven't really got anything worth telling about done, ... ... ... z) lazy. Feel free to pick your favourite image

What I’ve done during the absence

Circuit Design

I finally got around to making my prize order, should arrive next week image


It took this long, as most of the stuff is components for my custom home automation add-on for the Pi. It'll include 1-Wire, RTC, 8-ch relay controller, "watchdog" for the Pi etc.


I have started a blog post about this and if all goes well, I'll publish it next week. Once I've experimented on a breadboard, I'll also put up the design with explanations why I've done things the way I have. After that, I'll design the PCB and once that's proven, it'll be made public as well.

(my take on a) Python library for the scope

I’ve wandered off from the main point of the challenge somehow… For some reason, I finally (about 24h ago) decided to plug in the Tektronix to my Linux PC. I tested out the example found at https://github.com/DawesLab/instruments just to check that it’s working.


After this, it’s mainly been the case of reading the programmers manual for the scope and writing a Python library (coming soon to a Github near you) to be able to get basically everything possible from the scope. Also, it at the moment allows setting both horizontal and vertical settings, fetching the automated measurements, as well as plotting an image from the waveform. At the moment, there’s only trigger settings, saving the settings etc to be done. Also, I’m not happy with the code structure at the moment, so it needs fixing.


Next step is to allow saving settings, image etc easily, hopefully in the same format as Tektronix uses for USB. This would allow going back to the same settings easily after making measurements.


After this, it’s time for a GUI. At the moment I’m not planning on making the GUI real time, the main point is to allow easier setting and fetching single runs from the scope (in the same manner as USB-saving).


The library is designed to be easy to use from the beginning. The following code does all the setting up (from Default Setup, at the moment needs Trigger level pushing to set 50%) and produces the image shown later on…


# Initialize instance

s = TBS_1000()

# 250µS divider

s.horizontal.div = 250e-6

# Offset trigger timing to -4 divisions

s.horizontal.offset = s.horizontal.div_to_offset(-4)

# Set the new horizontal settings

s.set_horizontal()


# Set channel 1 offset to -3 divs (offset_v sets as volts)

s.channels[1].offset = -3

# Set div to be 1 V

s.channels[1].div = 1

# Do the actual updating of the settings

s.set_channel(1)

# Fetch one "trigger event"

# Same as pressing Single on the front panel

s.single()


# Fetch data from CH1 as waveform

# (a list of waveforms, s.get_data(2) would fetch CH2)

waveforms = [s.get_data(1)]

# Plot the waveforms as they appear on the scope

plot_waveforms(waveforms)

image

Coming in the future

I’ll keep on working with the scope library for the time being. When the Farnell order arrives, I’ll setup the PCB on a breadboard and test the functionality. After this, I’ll make needed changes to the schematic and design the PCB and order it. It’ll take 4-6 days to arrive, so there’s time for school, job, some further developments on the scope library or just being sick.


Or maybe I’ll try and write some blog posts. Is there any interest in posts such as home automation reliability / security and why it’s important to me? The post I’m writing about the schematic does leap to this area a bit, but I’m willing to go a bit further to the risks and possibilities of home automation, especially considering wireles, which this challenge is about...


  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube