Author Topic: Simulation software for raspberry pi  (Read 8128 times)

0 Members and 1 Guest are viewing this topic.

Offline ParthTopic starter

  • Contributor
  • Posts: 18
  • Country: in
Simulation software for raspberry pi
« on: October 29, 2017, 04:51:52 am »
Hi,

I don't have raspberry pi kit.  I'm a hobbyist interested in learning about raspberry pi and programming. I have searched on internet. I found the many simulator.  I don't know which is best simulator for learning. Please some one recommend me good simulator     
 

Offline forrestc

  • Supporter
  • ****
  • Posts: 653
  • Country: us
Re: Simulation software for raspberry pi
« Reply #1 on: October 29, 2017, 05:16:26 am »
The question I would have for your is what do you hope to learn?

I admit I didn't realize there were simulators out there until I saw your question.   Looking at the simulators I could quickly find, they mostly seem to be ways to run the raspberry pi operating system on a PC.   Which is good if you want to play with the operating ssytem, but not so good if you are looking to learn about the raspberry pi hardware.

Depending on your goals, a raspberry pi simulator might not be the best spot to start.
 
The following users thanked this post: Parth

Offline ParthTopic starter

  • Contributor
  • Posts: 18
  • Country: in
Re: Simulation software for raspberry pi
« Reply #2 on: October 29, 2017, 12:06:05 pm »
The question I would have for your is what do you hope to learn?

I admit I didn't realize there were simulators out there until I saw your question.   Looking at the simulators I could quickly find, they mostly seem to be ways to run the raspberry pi operating system on a PC.   Which is good if you want to play with the operating ssytem, but not so good if you are looking to learn about the raspberry pi hardware.

Depending on your goals, a raspberry pi simulator might not be the best spot to start.
I can take two or three months to  buy board. that is reasons  I want to work on simulator  so that I can get at least idea   

I have laptop  and I think I have to buy monitor with  raspberry pi board because I think I can not connect  raspberry pi to laptop.

All is the matter of cost and money so I am just want to save my time that is reason I want to use simulator later I will work with real hardware
« Last Edit: October 29, 2017, 12:20:35 pm by Parth »
 

Offline forrestc

  • Supporter
  • ****
  • Posts: 653
  • Country: us
Re: Simulation software for raspberry pi
« Reply #3 on: October 29, 2017, 12:30:34 pm »
I can take two or three months to  buy board. that is reasons  I want to work on simulator  so that I can get at least idea   

Maybe I should ask a different question:

What do you hope to do with the raspberry pi?   

If it's run things like web servers, etc., then just installing a copy of Linux on a PC would allow you to start learning about Linux and run servers and the like before getting going with the raspberry pi.   If you want to learn about programming a pi, then you could start with learning languages like Python which are commonly used on the pi.  There are lots of options to get this running, quite a few of which are able to run inside windows in a VM.     

If you're looking to do hardware interfacing/electronics, then I'm not aware of a raspberry pi simulator which would help you out there.   The online microsoft one might help, but it seems as if this tool is designed to get you working with the Microsoft Azure IoT hub.

Either way, I don't think I'd necessarily do the emulation route.   A PI is an ARM architecture product, any place you're likely to run an emulator is going to be an intel platform.   You're going to need a failry speedy PC to be able to even reach the performance of a raspberry pi, if it's even possible (the benchmarks I'm seeing indicate it's still going to be very slow).   Since the pi is based on debian linux, I'd just install debian, and learn about the command line part of linux.  This will give you a head start on the command line part of the pi, since this should be very similar. 

Edit:  removed part of my response not applicable to Parth's edited response.
« Last Edit: October 29, 2017, 01:43:14 pm by forrestc »
 
The following users thanked this post: Parth

Offline ParthTopic starter

  • Contributor
  • Posts: 18
  • Country: in
Re: Simulation software for raspberry pi
« Reply #4 on: October 29, 2017, 02:11:02 pm »
I have laptop  and I think I have to buy monitor

every linux and unix system can export the display over the network
this means you can use your laptop screen and keyboard&mouse
to interface applications running on RPI

and if you don't need the graphic environment, a simple ssh client is
all you need
My father has told me. He will buy  raspberry pi board for me after two months

I am familiar with microcontroller. I have been worked with electronic component.  I have been programmed micrpcontroller and I have knowledge of embedded c programming

Now I want to use raspberry pi board for internet of things.  I want to learn about programming a pi by interfacing sensor. I am totally new for pi and  Python. So I want to  write and  test python program on pi.

When I was new for microcontroller. I started with LED blinking program. I want do something like this  with  raspberry pi

Hardware :   raspberry pi
language :    python
 
« Last Edit: October 29, 2017, 02:13:23 pm by Parth »
 

Offline forrestc

  • Supporter
  • ****
  • Posts: 653
  • Country: us
Re: Simulation software for raspberry pi
« Reply #5 on: October 29, 2017, 02:24:21 pm »
I have laptop  and I think I have to buy monitor with  raspberry pi board because I think I can not connect  raspberry pi to laptop.

As legacy mentioned, you don't need a monitor or keyboard to set up a raspberry pi.  In fact, the majority of the pi's I have used don't end up using a monitor or keyboard after the intitial setup.  I do happen to have a few monitors and keyboards floating around so I do tend to do the initial setup that way as it's slightly easier, but definitely after setup it isn't needed unless of course whatever you end up using the pi for needs a monitor.

Also, note that the video output on the pi is a HDMI output, so many TV's could be used for a monitor at least temporarily.   I've done this in a pinch.   

Back on the simulator.... based on your most recent reply (Which came in while I was talking about it):   Other than the microsoft one, and the one at trinket.io/sense-hat, I'm not aware of any simulators which allow you to do simulate the hardware in a way which you would be able to simulate a blinking led.   Installing linux and/or one of the other simulators may allow you to play with the internet side of the internet of things connectivity, but not the hardware side. 

You should think of the raspberry pi as a small linux computer which happens to have some GPIO on it.   Learning python itself (instead of focusing on blinking a led) will get you a long ways toward what you want to do, and then when the pi arrives, you'll know the language.  Python can be installed on your laptop without any emulation, and there are lots of learning python websites out there.
 
The following users thanked this post: Parth

Offline hugo

  • Regular Contributor
  • *
  • Posts: 165
  • Country: ca
Re: Simulation software for raspberry pi
« Reply #6 on: October 29, 2017, 10:55:43 pm »
Hi,

I don't have raspberry pi kit.  I'm a hobbyist interested in learning about raspberry pi and programming. I have searched on internet. I found the many simulator.  I don't know which is best simulator for learning. Please some one recommend me good simulator     

In the meantime, until the board arrive, you could do some reading about raspberry pi here : https://learn.adafruit.com/category/learn-raspberry-pi , then start learning python and then do your own projects.
 
The following users thanked this post: Parth

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: us
Re: Simulation software for raspberry pi
« Reply #7 on: October 29, 2017, 11:55:07 pm »
The video output is HDMI, maybe you can plug it into a TV.  The keyboard and mouse will have to be USB.
 

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: Simulation software for raspberry pi
« Reply #8 on: October 30, 2017, 08:16:57 pm »
Before you actually spend the money, if you intend to use Linux on the Pi, you may want to start by familiarizing with the environment on your computer first. Linux can have a steep learning curve if you start from Windows (a lot shallower if you start from macOS, which itself is UNIX like Linux.)

Raspberry Pi's default Linux distribution, Debian with PIXEL UI, is available for x86 and amd64 computers. You can run this PC version on your computer to get familiarized with the environment. As long as you are not touching the hardware or low level kernel stuff, using and programming Linux on a Pi is almost identical to the PC, and in most cases the programming code can be identical and exchangeable. (This extends to macOS to some extent as well.)

If you don't have a spare computer, you can use some kind of virtualization software to spawn a VM running Linux, be it Hyper-V if you have 64-bit Windows 10 Pro/Enterprise/Education, or Virtualbox for all other platforms including Windows 10 Home.
 
The following users thanked this post: agehall, Parth

Offline ParthTopic starter

  • Contributor
  • Posts: 18
  • Country: in
Re: Simulation software for raspberry pi
« Reply #9 on: November 02, 2017, 11:58:19 am »
This is list of part that I need

Raspberry Pi
Monitor or TV
HDMI cable
USB keyboard
USB mouse
Power supply
8GB SD card

I want to save money, I don’t have Monitor or TV , USB keyboard, USB mouse I am planning to use display and keyboard of laptop for Raspberry Pi. I have searched on internet and I found two software putty and xming. I have downloaded that software

One another thing I have WiFi connection so I want to connect Raspberry Pi via wifi connection . I have searched on internet I can do that.

Finally I think I need following things
Raspberry Pi
8GB SD card
Rj45 cable
Power supply adopter

if I am missing somewhere please let me know ?
 

Online tszaboo

  • Super Contributor
  • ***
  • Posts: 7369
  • Country: nl
  • Current job: ATEX product design
Re: Simulation software for raspberry pi
« Reply #10 on: November 02, 2017, 12:43:05 pm »
If you are short on money, this is the smallest setup to get you started with:
Raspberry Pi Zero(5 EUR) or W (10EUR)
Class 10 SD card (about 4 EUR)
Micro USB cable  (1 EUR?)
SD card reader
PC with Windows or Linux

This is really all you need to get started with it, if you are not trying to use the RPI as a computer. Which you can, but shouldn't.
 
The following users thanked this post: Parth

Offline ParthTopic starter

  • Contributor
  • Posts: 18
  • Country: in
Re: Simulation software for raspberry pi
« Reply #11 on: November 02, 2017, 05:17:41 pm »
Its really getting confuse. I do not understand what I should buy.  can you tell me which is necessary things that I should buy and which software I have to download.     

I want to buy those part which is more important. That's the reason I don't want to buy monitor, usb keyboard, mouse. I want to use laptop instead of these. with this I can save money.

Now I am really confuse I don't understand what should I buy and what shouldn't buy.  It will be very helpful if you will help me to find right part  Please tell me what should I buy    ?   
« Last Edit: November 02, 2017, 05:32:20 pm by Parth »
 

Offline eliocor

  • Supporter
  • ****
  • Posts: 519
  • Country: it
    • rhodiatoce
Re: Simulation software for raspberry pi
« Reply #12 on: November 02, 2017, 11:08:04 pm »
@legacy:
I think you are overcomplicating things for the OP (Parth):
he does not want to spend too much on his RPi, so lets him start with the plain vanilla configuration and, only AFTER he grabs how things work on RPi, THEN he can change the typical configuration as you state.
You are only making him confused:
he does not need "performances will be increased by different orders of magnitudes": as he clearly stated he wants:
- "I want to save money"
- "I want to use raspberry pi board for internet of things"
- "I want to learn about programming a pi by interfacing sensor"
- "I am totally new for pi and  Python"
- "I want to  write and  test python program on pi"

For such requests he does not need any superperformance computer at all, just a plain RaspberryPi...

It is clear you (legacy) are only making confusion to a person who is just starting!
He is not a "pro" and I do not think he needs such "high level" suggestions EXCEPT if you give him a really complete and detailed list of ALL of the steps required to follow your otherwise insightful suggestions.
But please remember: he is just a newbie (no offense intended!). You can't overwhelm him!

P.S.: he wrote "I have searched on internet and I found two software putty and xming": surely on those link he have searched for there are some explanations on how to use putty (BTW it is a good app!): you can't throw the stone and hide your hand... Sometime it is better to follow to the letter (especially the first times) the instructions reported on the official blogs/site of the RaspberryPi than to adventure on unchartered waters.
P.P.S.: sorry, English is not my first language and I hope to have not offended anyone!  ;)
« Last Edit: November 02, 2017, 11:20:33 pm by eliocor »
 

Offline eliocor

  • Supporter
  • ****
  • Posts: 519
  • Country: it
    • rhodiatoce
Re: Simulation software for raspberry pi
« Reply #13 on: November 02, 2017, 11:48:10 pm »
Quote from: legacy
I suspect because you are one of those so ignorant about linux who believe that having to use NANO or VI requires a nerd.

Sorry to disappoint you, but the first time I used Unix was in 1983 on a VAX 11/780 (AT&T Unix SVR1 and Eunice, a nice Unix emulator)...
Using 'ed' as line editor on a Digital LA34*/LA120 (paper) or VT100 (CRT).
Much earlier than 'vi'
I continued to daily use Unix/Linux since those times.

*) nicknamed "the Turing machine" for the slowness of its head!!!!
« Last Edit: November 03, 2017, 02:33:33 pm by eliocor »
 

Offline eliocor

  • Supporter
  • ****
  • Posts: 519
  • Country: it
    • rhodiatoce
Re: Simulation software for raspberry pi
« Reply #14 on: November 03, 2017, 12:33:32 am »
You are not required to have/buy:
- Monitor/TV
- HDMI cable
- USB keyboard
- USB mouse

Just follow the instructions shown on:

http://www.jamesfmackenzie.com/2017/01/02/raspberry-pi-headless-rasbian-install/

to use your laptop to connect to your Raspberry PI.
« Last Edit: November 03, 2017, 12:41:23 am by eliocor »
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4028
  • Country: nz
Re: Simulation software for raspberry pi
« Reply #15 on: November 03, 2017, 10:42:10 am »
Quote from: legacy
I suspect because you are one of those so ignorant about linux who believe that having to use NANO or VI requires a nerd.
Sorry to disappoint you, but the first time I used Unix was in 1983 on a VAX 11/780 (AT&T and Eunice, a nice Unix emulator)...

I used Eunice in 1983 also. It worked, but VMS was not designed to fork a lot of processes and abandon them -- you got one when you logged on and kept it for your entire session -- which made emulating Unix slow. Eunice cached processes, but still...

At one point the sysadmin made an error installing a Eunice update. Some of the utilities, such as "ps" required admin privileges. The VMS version of setuid root. The mistake was he forgot to disable the ability to attach a debugger to those processes. I did that, set a breakpoint in ps, poked about a dozen bytes of machine code into memory (a system call something like "set_current_privs((int64_t)-1, permanent=true)"), ran it, and voila! I was God on that machine.

Fun times.
 
The following users thanked this post: newbrain

Offline brainwash

  • Frequent Contributor
  • **
  • Posts: 463
  • Country: de
    • Hack Correlation
Re: Simulation software for raspberry pi
« Reply #16 on: November 03, 2017, 12:51:20 pm »
My gripe is that I don't understand why a rPI is needed at all.
To interface sensors you can just get an Arduino-compatible board and write your firmware, controlled from the computer via serial. Then write Python on the computer or whatever you'd like (Processing) to interface with the external board.
To make an IoT thing you can use an ESP8266 board, those are around 2-3$ now. It supports micro-Python and there are probably countless examples on how to interface sensors.
To learn Linux you can just install Oracle VirtualBox and create or download a virtual machine (/appliance).
To learn all of the above, buy the cheapest router that supports OpenWRT. You can compile your own firmware, write code on it, whatever. Heck, I'm sure someone could give you an older one for free.

But if you still want to buy the rPi - and be prepared for it - install a virtual machiine with Debian: http://www.osboxes.org/debian/ .
 
The following users thanked this post: agehall

Offline ParthTopic starter

  • Contributor
  • Posts: 18
  • Country: in
Re: Simulation software for raspberry pi
« Reply #17 on: November 03, 2017, 04:36:14 pm »
My gripe is that I don't understand why a rPI is needed at all.

Most of company work on latest technology. They require hands on experience with RPi python programming. That's the reason I wanted to work on RPi 
To interface sensors you can just get an Arduino-compatible board and write your firmware, controlled from the computer via serial.

I tried that method but the problem is serial port programming. I have done experiment where one PC is working as server and another PC is working as client. both PC'S connected with same wifi router. so client can access website from server. I was trying to connect microconntroller with sensor at server side but the problem is that I need to activate serial port. I was stuck there       

have you done it like this ?
 

Offline brainwash

  • Frequent Contributor
  • **
  • Posts: 463
  • Country: de
    • Hack Correlation
Re: Simulation software for raspberry pi
« Reply #18 on: November 03, 2017, 05:54:33 pm »
Which language? What OS (assume Windows)?
 

Offline timb

  • Super Contributor
  • ***
  • Posts: 2536
  • Country: us
  • Pretentiously Posting Polysyllabic Prose
    • timb.us
Re: Simulation software for raspberry pi
« Reply #19 on: November 03, 2017, 06:04:24 pm »
I think you are overcomplicating things for the OP (Parth)

overcomplicating what?
I have just suggest to buy an external harddrive because SDCARDS are slow and pretty crappy

For such requests he does not need any superperformance computer at all, just a plain RaspberryPi...

SDCards are crappy, we are not talking about superperformance, it's a simple matter of been more comfortable.


It is clear you (legacy) are only making confusion to a person who is just starting!

Oh well ...

You do know that the RPi only has USB2.0 and that said USB link is routed through an onboard hub controller that’s shared with the Ethernet controller, right? The result is a very slow link (even slower if trying to copy files to and from the drive over the network).

If you use a Class 10 SD Card, read speeds will always be much faster than a USB based HDD on the Raspberry Pi.
Any sufficiently advanced technology is indistinguishable from magic; e.g., Cheez Whiz, Hot Dogs and RF.
 

Offline ParthTopic starter

  • Contributor
  • Posts: 18
  • Country: in
Re: Simulation software for raspberry pi
« Reply #20 on: November 03, 2017, 06:12:00 pm »
Which language? What OS (assume Windows)?

I was using window 10.  I work only with c programming. I found that I can do it with php or asp.net. I  find so much for serial port program. But I could not get success. finally I left because learning many language was very difficult for me       
« Last Edit: November 03, 2017, 06:16:37 pm by Parth »
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4028
  • Country: nz
Re: Simulation software for raspberry pi
« Reply #21 on: November 03, 2017, 08:08:38 pm »
You do know that the RPi only has USB2.0 and that said USB link is routed through an onboard hub controller that’s shared with the Ethernet controller, right? The result is a very slow link (even slower if trying to copy files to and from the drive over the network).

If you use a Class 10 SD Card, read speeds will always be much faster than a USB based HDD on the Raspberry Pi.

For just $5 more, the Odroid C2 is a massively better machine. Proper gigE, fast SD, faster eMMC, fast RAM. Despite the same A53 core and nominally only 25% faster clock rate, it's more like double the speed in practice. And an actual 64 bit version of Linux from Day 1.

Harder to find, and not as much community support, unfortunately.
 

Offline ParthTopic starter

  • Contributor
  • Posts: 18
  • Country: in
Re: Simulation software for raspberry pi
« Reply #22 on: November 05, 2017, 05:50:04 am »
Thanks. I have  already got so much help but still  I have only last doubt   

I know wifi router is not good option but some time we have to compromise with situation that is reason  I don't want to connect RPI  with personal router. It increase cost. I have free wifi router in my PG and I am planning to connect display of laptop for RPi.

I have searched on internet there is information regarding ethernet cable but I think I need only one cable to connect display of laptop to RPI

 How to buy correct cable what I need  buy micro usb cable or HDMI cable.

https://www.amazon.in/s/ref=nb_sb_ss_c_1_4?url=search-alias%3Daps&field-keywords=raspberry+pi+3&sprefix=rasp%2Caps%2C297&crid=2JIZT1DFFQOJT

which one is best first or second ?
           
« Last Edit: November 05, 2017, 06:22:28 am by Parth »
 

Offline eliocor

  • Supporter
  • ****
  • Posts: 519
  • Country: it
    • rhodiatoce
Re: Simulation software for raspberry pi
« Reply #23 on: November 05, 2017, 11:21:28 am »
Don' t worry too much regarding using WiFi: you are just starting to learn how to use your Rpi.
If everything works correctly, you will got no trouble at all in your experimentations.
IF, for some particular reasons, you will encounter some problems, you will LATER can try the network cable solution.
 

Offline TomS_

  • Frequent Contributor
  • **
  • Posts: 834
  • Country: gb
Re: Simulation software for raspberry pi
« Reply #24 on: November 05, 2017, 12:56:18 pm »
I am totally new for pi and  Python. So I want to  write and  test python program on pi.

You dont need a Raspberry Pi to start programming Python. Download Python from their website and install it on your current laptop/computer and off you go.

You then have the next 2 months to familiarise yourself with Python before trying to also mix GPIO and other peripherals in to the mix.

I believe Raspberry Pi also has serial console enabled by default, or it can be enabled very easily by modifying a file on the boot partition of the SD card. You can then talk to the Raspberry Pi over serial without needing an external monitor or keyboard or mouse. At the very least you can use this to enable SSH, after which the serial port on the Raspberry Pi can be freed up for your projects.

There are tons of videos on YouTube that can help you get started.
 

Offline brainwash

  • Frequent Contributor
  • **
  • Posts: 463
  • Country: de
    • Hack Correlation
Re: Simulation software for raspberry pi
« Reply #25 on: November 05, 2017, 05:16:57 pm »
Which language? What OS (assume Windows)?

I was using window 10.  I work only with c programming. I found that I can do it with php or asp.net. I  find so much for serial port program. But I could not get success. finally I left because learning many language was very difficult for me       

Python is probably easier to learn than C, just follow some examples online: https://playground.arduino.cc/Interfacing/Python
If you know Python you are probably well-equipped to do IoT stuff on the rPI.

You should also research what kind of sensors you want to interface with. Depending on their protocol/wiring you might not be able to interface with them directly from the Raspberry and still need to use another component (Arduino-like) to get data.
 

Offline ParthTopic starter

  • Contributor
  • Posts: 18
  • Country: in
Re: Simulation software for raspberry pi
« Reply #26 on: November 12, 2017, 09:58:53 am »
Hi All

Today I am very happy,  got my RPI board. I have attached picture of my board. May be within three day's I will have Micro SD card and ethernet cable

any suggestion to utilize  the time
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf