Jump to content

raspberry pi and modules

Maomocake

Hey guys, I'm trying to code for a raspberry pi on the go so I was wondering is there like a simulator for the pi where i can code ,with modules and sensors attached , but still only just carry a laptop (basically like an IDE with Pi functionality built in) if not possible just comment how i can put Rpi.GPIO library into pycharm

 

Thanks 

Link to comment
Share on other sites

Link to post
Share on other sites

-> Moved to Hobby Electronics

^^^^ That's my post ^^^^
<-- This is me --- That's your scrollbar -->
vvvv Who's there? vvvv

Link to comment
Share on other sites

Link to post
Share on other sites

Well if you search online you can find this Raspberry pi Simulator:

https://azure-samples.github.io/raspberry-pi-web-simulator/

 

But it uses javascript and is kind of meh.

 

I have a better solution for you:

Make your Pi available from the internet. Only via a ssh key of course. And develop with VSCode Remote development.

 

So do the following:

 

  • Setup a headless Raspberry Pi with SSH key
  • Change standard password, disable root login and disable password login in /etc/ssh/sshd_config
  • Make your pi available from outside your home network: Route port 22 to your pi and add a dyndns service (either router or your pi(try out duckdns or dynv6.com ))
  • Now setup Visual Studio Code on your Laptop
  • Install the Remote Develop extension pack https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack
  • Now setup your raspberry pi as a remote target (follow the microsoft guides) (connect via your smartphone hotspot so you replicate your remote working)
  • Now you should be able to even debug your software on the go

Also some tips you could try out:

  • Use the Python extension in VSCode instead of pycharm. Might be worth a try
  • Try out Platformio extension in VSCode. I think they offer even a different remote working solution. Never tried so far.

Last but not least. Don't give up. Have fun developing.

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×