element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
7-Segment Display
  • Challenges & Projects
  • Project14
  • 7-Segment Display
  • More
  • Cancel
7-Segment Display
Blog Simulate 7-segment circuits in your web browser!
  • Blog
  • Forum
  • Documents
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: scottiebabe
  • Date Created: 31 May 2022 3:00 PM Date Created
  • Views 42055 views
  • Likes 17 likes
  • Comments 9 comments
Related
Recommended

Simulate 7-segment circuits in your web browser!

scottiebabe
scottiebabe
31 May 2022

I recently came across the online circuit simulator Wokwi. So, I don't really know what to say just yet. But, I am certainly impressed to say the least. I copied my RPI Pico 7-segment design into the simulator and it ran just fine.

Pretty incredible!

I believe anyone can see the project, if you want to try the simulator here is the project link: https://wokwi.com/projects/331838877263200851 

I am even more impressed how far down the rabbit hole the simulator goes. I also tried one of my more complicated buswrite function which addresses the gpio registers in memory and that worked fine too!

SIO_BASE = 0xd0000000 
def BusWrite( b0, bn, v ):
    n = bn-b0+1
    bitmask = (0xFFFFFFFF >> (32-n)) << b0
    scratch = mem32[SIO_BASE+0x10] # read GPIO output reg
    scratch &= ~bitmask
    scratch |= v << b0
    mem32[SIO_BASE+0x10] =  scratch

I tried another sample project with an arduino and an MPU650:

I added the logic analyzer block myself to monitor the I2C bus. After stopping the simulation, I got a value change dump file name "wokwi-logic.vcd"

I imported the VCD file into sigrok and added an I2C, decoder:

You can even adjust sensor values in real time!

You don't have permission to edit metadata of this video.
Edit media
x
Upload Preview

I found this sample project at the bottom of the mpu modules help guide located at: https://docs.wokwi.com/parts/wokwi-mpu6050 

Anonymous
  • ntewinkel
    ntewinkel 1 month ago

    That’s really cool! Works on iPad too Slight smile

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • neuromodulator
    neuromodulator 1 month ago

    Great discovery. Thanks for sharing!

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • scottiebabe
    scottiebabe 1 month ago in reply to ralphjy

    O my goodness, it even simulates a guest WIFI network for simulating an IOT projects. Pretty fancy! Nice discovery :) 

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • ralphjy
    ralphjy 1 month ago

    Very interesting.  Thanks for the link.  I'm actually away from hardware for a while and it will be fun to give the simulator a try.

    I was somewhat surprised that it also has WiFi capability and even provides a PCAP file so that you can capture transactions using WireShark!

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • scottiebabe
    scottiebabe 1 month ago in reply to Jan Cumps

    That's great to hear, I am totally amazed.

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
>
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube