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
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
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: scottiebabe
  • Date Created: 31 May 2022 3:00 PM Date Created
  • Views 53057 views
  • Likes 17 likes
  • Comments 10 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.

image

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:

image

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:

image

You can even adjust sensor values in real time!

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

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

  • Sign in to reply
  • bestsoundbarblog
    bestsoundbarblog over 3 years ago

    Hey thanks for the super helpful reply. I'm not sure how I missed that thread. I haven't quite mastered the search function on here. I think I'll pass with him this time around. If i want any further guideline we will contact you.
    here /challenges-projects/project14/7segmentdisplay/b/blog/posts/simulate-7-segment-circuits-in-your-web-browser

    • Cancel
    • Vote Up -1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • srteyrey
    srteyrey over 3 years ago

    I'm new in this gathering. I have a few inquiries regarding this gathering. These inquiries are displayed underneathWinkWink:

    /challenges-projects/project14/f/forum/49737/project14-volunteer-to-judge-the-off-the-shelf-competition

    In the event that you have data about this. Kindly tell us underneath. I'm extremely confounded about thatDisappointed relievedDisappointed relieved.

    • Cancel
    • Vote Up -1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ntewinkel
    ntewinkel over 3 years ago

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

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • neuromodulator
    neuromodulator over 3 years ago

    Great discovery. Thanks for sharing!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • scottiebabe
    scottiebabe over 3 years 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
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
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